| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
XHTML 1.0 Transitional or Strict
Which is the best to use or "standard" to use? I am still using GoLive CS2, and eventually I'll make the jump to Dreamweaver CS3, but currently this is what I have. I'm in the process of converting all my old sites that are in framesets to CSS layouts. I noticed some of my older pages were in HTML 4 Transitional, and I'm going to make them XHTML 1.0 pages, but should I do Transitional or Strict. Thanks. Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
|
|
#2 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,934
|
Strict variations are more likely to trigger absolute best behaviour in UAs, so, imo, they are the only ones worth using. (Whether you should go HTML 4.01 Strict or XHTML 1.0 Strict is another issue.) |
|
|
|
#3 (permalink) |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
|
Simple really - if you consider your website(s) in a 'transitional' phase between the old and new, use that. On the other hand, if your website(s) can easily be written, without breaking expectations, in completely 'strict' code, use that. |
|
|
|
#4 (permalink) |
|
Senior Member
|
Ok, so since I'm somewhat new to switching these over, I should play it safe and go XHTML 1.0 Transitional? I appreciate it guys. Any big things I should watch out for? I know the basic of all tags and attributes should be lowercase, and attributes must be enclosed with double quotes, and all tags must EVENTUALLY close. Anything else?? Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#5 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Well, that's for XHTML. Also, make sure you have a doctype declaration at the top. Technically, you really should be sending XHTML as application+xml/xhtml to browsers that can handle that mime-type instead of text/html, but you can use text/html without invalidating your code. I do it as I don't see enough benefit in sending things as application+xml/xhtml so long as IE doesn't understand that. Finally, I agree with Bill Posters. Strict doctypes are the way to go as they'll trigger standards-compliance mode in most user agents. It's not that difficult. Try this: build your site to be valid (X)HTML Transititional then switch the doctype to Strict and see what happens. |
|
![]() |