On Fri, 5 Jul 2002, Dave Watts wrote:

> > > > > Well, that's a little different. If you want to write HTML
> > > > > that will comply with XHTML, you have to close every tag,
> > > > > even BR and HR tags which would never contain anything -
> > > > > that's just the nature of XML.
> > > >
> > > > Tags that do not have closing tags only need a slash at the
> > > > end. Like <br />.
> > >
> > > When you put that slash in the end, you are closing that
> > > element. In XML, these two notations are semantically identical:
> > >
> > > <br></br>
> > > <br />
> >
> > Maybe I misread but this was about xhtml not xml. In xhtml
> > you do not need to explicitly close tags like <br> with a </br>.
> > One <br /> is good enough.
>
> I think we're essentially saying the same thing. However, XHTML is XML -
> XHTML is an XML-compliant language. A valid XHTML document is, by
> definition, a well-formed and valid XML document. In any XML language,
> including XHTML, each element must have a start and end, and you have two
> ways to write that, as previously shown.
>

I don't know what you are getting at but here ...
http://www.utoronto.ca/webdocs/HTMLdocs/NewHTML/xhtml.html

"Empty" tags must be written with an extra slash at the end. An empty tag
is one like <br> or <img src="foo.html"> that doesn't have a </br> or
<img> to end it. In XHTML, such tags must be written as: <br />, and <img
src="foo.gif" />.


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to