Steve Olive wrote:
I would recommend using the XHTML 1.0 Transitional DTD instead of
HTML 4.01 - for the simple reason that there is a bit more tolerance
for user-friendly options but you are following the XML standards of
lower case tags and attributes, all tags being closed, preferably CSS
for positioning but tables can be used when you just can't quite get
that alignment, etc
Do the validation of your web pages - Mozilla Firefox Extensions can
help with this - and your pages can be easily updated to a XHTML 1.0
Strict DTD. You could even look at moving to XHTML 1.1 Strict DTD, or
whatever the current standard has moved too, when you develop your
skills and understanding.
Pony-warning :-)
Just a question: is it "xhtml 1.0 which may be served as xhtml and/or
html" or "html with an xhtml DTD, lowercase and slashes, and served as
html" you are recommending?
I have no problems with the former since I use it all the time, but the
latter is what is found on most sites, and that's "no good" and should
not be recommended to anyone.
The basics of what I have to say on the matter can be found here...
<http://www.gunlaug.no/contents/wd_1_06_03.html>
...and that page is duplicated in several versions - valid and not -
working and not - just to clarify what that is all about.
There's no such thing as 'XHTML 1.1 Strict', BTW.
It is just 'XHTML 1.1', and it doesn't work in IE/win since that browser
doesn't understand what xhtml is all about, and 'XHTML 1.1' shall not be
served as 'html'.
Any web developer who knows what xhtml is all about may use xhtml 1.0 at
his/her discretion. No problem - as long as one get it right.
I do recommend HTMLTidy for all web developers - regardless of which DTD
they choose for their markup. However, Tidy's settings must be correct
for the task...
<http://www.gunlaug.no/contents/wd_1_07.html>
regards
Georg
--
http://www.gunlaug.no
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************