[thelist] end tags?

Oren Levin lists at pinetree.net
Mon Apr 22 00:01:01 CDT 2002


Close but not quite. From the W3C Guidelines:
http://www.w3.org/TR/xhtml1/#guidelines

Include a space before the trailing / and > of empty elements, e.g. <br />,
<hr /> and <img src="karen.jpg" alt="Karen" />. Also, use the minimized tag
syntax for empty elements, e.g. <br />, as the alternative syntax <br></br>
allowed by XML gives uncertain results in many existing user agents.

Hope that helps.

Oren
-----
Oren Levin, Web Developer
olevin at audible.com, 973.837.2811
Get free digital audio - www.audible.com/spreadthewords

-----Original Message-----
From: Karen J. Bowen

Just came across this page

http://www.devx.com/projectcool/developer/reference/tag-table.html

which is advising that these days we should be using end tags for all
HTML elements, such as <img></img>, <base></base>, <input></input>...

I must admit I haven't really delved into XHTML or XML much yet, but my
limited understanding of those technologies does not include the rules
above.

Is this page correct?

Thanks,
Karen




More information about the thelist mailing list