iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Submit Your Site For Review Need a fresh set of eyeballs to take a look at your site? Have a specific issue or question about some aspect of your layout, design or interface? This is the forum for you. When submitting your site, be sure to discuss what aspect you are looking for input on. Just posting a link with the word 'review' isn't appropriate.

Share Thread: & Tags

Share Thread:

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2006, 06:26 PM
WebProWorld Member
 
Join Date: Jul 2003
Location: Idaho Falls, Idaho
Posts: 30
Jools RepRank 0
Default !doctype

I'm working on running my pages through the sites listed before I submit them for peer review, and I'm having a hard time with !doctype.

I can't seem to find anywhere in my books what to do with this. Can anyone look at my site at www.shaddowdomain.com and help me with this? What is it and where do I need to put it?

Thanks so much, I feel so silly, but I just can't find it : P
  #2 (permalink)  
Old 09-11-2006, 07:17 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,661
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default

The specific doctype you will use depends on what standard you followed when developing your web site.
If you use the validator at http://validator.w3.org/, at the top of the results page there is a pulldown that lets you select the doctype to validate against. Once you find the one that validates with your site from the list, you can add that doctype to the beginning (first line) of your page. So, if your site validates as XHTML 1.0 strict for example, the doctype you enter would be <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  #3 (permalink)  
Old 09-11-2006, 08:16 PM
WebProWorld Member
 
Join Date: Jul 2003
Location: Idaho Falls, Idaho
Posts: 30
Jools RepRank 0
Default doctype

Ok, I tried to validate with every one of them, and not one worked. *sigh*

Now what? What have I done so horribly wrong *grrr*.
  #4 (permalink)  
Old 09-12-2006, 04:15 AM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default

Your document matches closest to HTML 4.01. So add these lines to the top of the document code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
Then go to http://validator.w3.org/ and check out the errors found and make the required changes of which there should only be a few. For instance wherever there is & in the HTML code, change it to &amp;. Also change the style tag from <style> to <style type="text/css">. And get rid of the height attribute on line 56. You are done.
__________________
My Nook | My Biz | My Photos
  #5 (permalink)  
Old 09-12-2006, 10:49 AM
WebProWorld Member
 
Join Date: Jul 2003
Location: Idaho Falls, Idaho
Posts: 30
Jools RepRank 0
Default doctype

I will do that, thanks so much!

So just for my own info, is my site (since I do my own code and I just look things up as I go along)kind of a "mutt" so to speak? Do I need to find a book on HTML 4.01 and stick to it to get the best results?

Also, I do a lot of my tweaking with Front Page. What code does that make? Should I find a different editor, or just use my Front Page and tweak my page with the validator when I'm done? How much does that matter?
  #6 (permalink)  
Old 09-12-2006, 11:33 AM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default

Front Page is MS and so the pages made with it are optimized for IE only. Validating the page would get rid of any problematic code.
__________________
My Nook | My Biz | My Photos
Closed Thread

  WebProWorld > Site Design > Submit Your Site For Review

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:36 PM.



Search Engine Optimization by vBSEO 3.3.0