You are here: Re: XHTML or HTML 4 ? « HTML « IT news, forums, messages
Re: XHTML or HTML 4 ?

Posted by Marc on 01/13/06 12:15

Gérard Talbot wrote:
> 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.

Does this mean that browsers actually take note of the doctype and
interpret the markup differently? Sorry if that sounds a really dumb
question...

> 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.

That's okay, we don't use any of the elements or attributes you
mentioned, and use CSS for presentation as it is intended. There is one
attribute I have not yet found an alternative to...

<img src="" align="right" />
<p>Big long paragraph of text</p>

This makes the text wrap around the image, is there a CSS alternative to
this?

> 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

Thank you, I shall have a read through these documents when I get some
time. :-)

Marc

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация