iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2005, 03:04 AM
WebProWorld New Member
 
Join Date: Feb 2005
Location: spain
Posts: 6
charco RepRank 0
Default Doctype important?

I have been recentoly told that I must have a doctype statement before the <html> tag. Is this true? and if so what sort of doctype should I use for a site built using Dreamweaver with templates having html, Javascript, and some flash animations.

Does each page need the same doctype?

Cheers
Reply With Quote
  #2 (permalink)  
Old 02-22-2005, 04:00 AM
Faglork's Avatar
WebProWorld Veteran
 
Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 938
Faglork RepRank 1
Default

You find the answers all at

http://hsivonen.iki.fi/doctype/

a more descriptive overview of doctypes:
http://www.w3schools.com/tags/tag_doctype.asp

Some doctypes send IE 6 into quirks mode, which means that it will apply the broken box model of IE5. If that happens, you need to apply the dreaded "box model hack" for IE5 in your CSS.

If you dont know what this all means, just google for "broken box model"

A DTD is also needed for validation, which gives you an easy way to write correct code: just use a validator. Most "strange design effects" and "browser differencies" are caused by faulty code, which can easily be avoided by validation.

A DTD can even make a difference between getting displayed or not: Some browsers on mobile devices simply dont display content which doesnt have a DTD or a wrong one. With my Nokia cell phone (for example) I can easily surf any (accessible) page, as long as its got a valid XHTML DTD.


A hint: If you go XHTML, do not use the XML prlogue. It is not required, but will send IE6 into quirks mode. (Did I already tell that I hate that crappy piece of software? Hopefully, IE 7 will be at least a bit more compliant.)


Alex
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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 06:09 AM.



Search Engine Optimization by vBSEO 3.3.0