|
Posted by Jonathan N. Little on 10/10/05 16:33
Toby Inkster wrote:
> Jonathan N. Little wrote:
>
>
>>Actually no, <h1 /> does not substitute for <h1></h1>.
>
>
> In XML-based languages, such as XHTML, yes it does.
>
> "<h1/>" and "<h1></h1>" are equivalent.
>
> HTML of course is not XML-based, so "<h1/>" does not mean the same as
> "<h1></h1>". In fact, "<h1/>" means the same as "<h1>>", though most
> browsers will get it wrong.
>
Hmmm good to know, so in XML <foo/> is soley for elements that may have
attributes but no child or containing data? Or does it mean what
follows is containing data as in a sole <p> tag in HTML?
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|