|
Posted by Gιrard Talbot on 01/12/06 21:06
Marc wrote :
> Which doctype should we be writing to now? What are the advantages /
> disadvantages? I usually write to XHTML1 Strict, but someone in here
> said they don't recommend using XHTML at all... why?
>
> Marc
The most important thing is to write with a strict DTD. Strict DTD will
bring all modern browsers (they all do support rendering mode based on
doctype declaration) into web standards compliant rendering mode. In
case of MSIE 6, this is very important to do since MSIE 6 in standards
compliant rendering mode will implement correctly the CSS box model.
Overall, strict DTD disregards elements and attributes used for
presentational/style purposes: your markup code makes better (or more
correct) use of the HTML code in its original intent, in its best
intended purpose. Usage of elements like <font>, <center>, etc. and
attributes like bgcolor, vspace, etc. are formally deprecated and should
be replace by use of CSS.
Reasons why HTML is to be preferred to XHTML are mentionned in 2 well
written documents:
Sending XHTML as text/html Considered Harmful
http://www.hixie.ch/advocacy/xhtml
Say NO to XHTML
http://www.spartanicus.utvinternet.ie/no-xhtml.htm
GΓ©rard
--
remove blah to email me
Navigation:
[Reply to this message]
|