You are here: Re: W3C complience checker and conformance « HTML « IT news, forums, messages
Re: W3C complience checker and conformance

Posted by David Dorward on 05/04/06 09:48

ironcorona wrote:

> Spartanicus wrote:
>> Mark Parnell <webmaster@clarkecomputers.com.au> wrote:
>>
>>>> Really? But they're empty!
>>> Not in XHTML. XML has no concept of empty elements.
>>
>> XHTML is merely a reformulation of HTML in XML, what is defined as an
>> empty element in HTML remains an empty element in XHTML.
>
> But if XML doesn't have empty tags

It does:

<!ELEMENT img EMPTY>
-- http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_img

> Of course the fact is that there *are* empty tags in XHTML but how are
> these defined?

Pretty much the same way as HTML - but without the "Start tag required, End
tag forbidden" code:

<!ELEMENT IMG - O EMPTY -- Embedded image -->
-- http://www.w3.org/TR/html4/sgml/dtd.html#Pixels


> http://www.w3.org/TR/xhtml1/#h-4.6
> says there it's fine.
> But as I said the compatibility guidelines say that you really shouldn't
> be using it.

IF you are serving the document as text/html.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

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

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