XHTML is HTML that is also well-formed XML. The main differences between HTML and XHTML are:
XHTML elements must be properly nested
XHTML documents must be well-formed
Tag names must be in lowercase
All XHTML elements must be closed
The sample that follows shows the XHTML structure of an ATG Search structured document. The <head>
element contains the title and properties, and the <body>
element contains the fielded text statements. Any other XHTML elements are ignored in terms of interpreting the structure, although some elements can denote paragraph boundaries within the statement text, such as <p>
elements.
<html> <head> <title/> <meta name="atg:type:prop" content="value" scheme="displayName=displayValue" /> ... </head> <body> <div class="atg:role:field" id="n"> statement text </div> ... </body </html>
The XHTML standard is described in detail at www.w3.org
,