Menu
hi,
does it not matter which doctype you use – as long as you use one, to avoid quirks mode and force standards mode? i’ve never seen a rendering difference between the strict,transitional,frameset types, they all show frames correctly (for example). in terms of validation it may be important (search engines) but for display? seems to have no effect in my experience (which is rather limited admittedly)
any thoughts,
thanks!
dean.
if the content-type is not xml (but,text/html), then does the browser not bother with any xml/xhtml declarations and tags etc and process the page as html[/quote]
(frames are just an example dtm)[/quote]
When authoring document is HTML or XHTML, it is important to Add a Doctype declaration. The declaration must be exact (both in spelling and in case) to have the desired effect, which makes it sometimes difficult.[/QUOTE]
if a page is servered as html, but contains an xhtml doctype it uses quirks mode.[/QUOTE]- is it? not according to
is html 4.01 the simplest way to go?[/quote]
Here's a tutorial on DOCTYPEs that explains:
* Why DOCTYPEs came about * What happens if you don't use a DOCTYPE * The differences between the DOCTYPEs
Actually, I wrote the tutorial, and I'd love to get some feedback from people on what they think about it.[/quote]
I love the way xhtml forces you to write it properly, with any luck that'll be the way the future goes.[/quote]XHTML doesn't add nearly as much as people tend to think. You're forced to quote attributes and write end-tags, but that's basically the end of it.
Browsers will treat both HTML 4.01 strict and XHTML 1.0 strict as being the same doctype if the page is served as HTML (and similarly for the transitional ones). The only browser where the XML tag coming before the doctype makes a difference is IE6, Microsoft fixed that bug for IE7.
...
While the browser doesn't actually use the doctype for its real purpose for pages served as HTML the doctype you use does still make a number of differences regarding how the browser processes the page. For anything in the code that doesn't validate according to the standards for the specified doctype the individual browsers are free to choose how to handle the code and so using code that is inappropriate for your chosen doctype increases the chance that your page will not display the same in all browsers.[/QUOTE]
0.1.9 — BETA 6.17