> > > > 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. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ 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

