You are here: Re: What's wrong with this HTML (fails validation) ? « HTML « IT news, forums, messages
Re: What's wrong with this HTML (fails validation) ?

Posted by Steve Pugh on 02/15/07 09:45

On Feb 14, 9:43 pm, rem6...@yahoo.com (robert maas, see http://
tinyurl.com/uh3t) wrote:

> Well so-far all I've learned is that:
> While <tag /> is a perfectly acceptable non-container XML tag,

Correct.

> it's totally invalid as such in SGML, generating completely different
> longuange semantics, therefore must be totally avoided in any
> WebPage that is supposed to be transitional between HTML and XHTML.

It has a different (but valid) use in HTML. However that use has never
been supported by browsers. It should be avoided in HTML for a mix of
practical and technical reasons.

> The br element is defined in a way that's totally incompatible
> between HTML and XHTML, so must be completely avoided in
> transitional WebPages.

I think you've misunderstood what Transitional means in the context of
HTML and XHTML.

HTML 4.0 Transitional was for making pages that were in transition
between HTML 3.2 style presentational markup and HTML 4+CSS style
semantic markup plus separate presentation.

XHTML 1.0 Transitional is just an update of this to use XML syntax. It
is nothing to do with a transition between HTML and XHTML.

The only thing that comes close to a transition between HTML and XHTML
is Appendix C of the XHTML spec which recommends the use of <br /> for
empty elements and <p></p> for non-empty elements (where empty is as
defined in the spec, not as in whether they have actual content or
not).

Steve

 

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

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