9. Using Plain HTML (xhtml)

9.1. Purpose

Provide an escape to use raw HTML within XML. Note that DTD-checking is switched off when this escape is used in your document

Using <xhtml> implies that you must use formal HTML, i.e. as defined in the W3C XHTML 1.0: The Extensible HyperText Markup Language where HTML is specified as XML. This goes especially for elements like <br> and <hr> that must be specified as respectively <br/> and <hr/> in XHTML.

9.2. Example

9.2.1. Construct

587: 588: <xhtml> 589: <i>Here you see the use of the &lt;xhtml&gt; tag. This 590: allows an "escape" into raw HTML, provided you follow the 591: XHTML syntax, i.e. closing all elements. This means for example using 592: &lt;br/&gt; i..s.o. &lt;br&gt;.</i>. 593: <p> 594: xhtml-content will be included as-is 595: within the generated document. 596: </p> 597: <p> 598: A line<br/> 599: break. 600: </p> 601: <p> 602: And a ruler 603: </p> 604: <hr/> 605: <p> 606: Next is a simple html table. 607: </p> 608: <table> 609: <tr> 610: <td width="100" height="100" bgcolor="red">red</td><td bgcolor="white">white</td><td bgcolor="blue">blue</td> 611: </tr> 612: </table> 613: </xhtml>

9.2.2. Result

Here you see the use of the <xhtml> tag. This allows an "escape" into raw HTML, provided you follow the XHTML syntax, i.e. closing all elements. This means for example using <br/> i..s.o. <br>.

xhtml-content will be included as-is within the generated document.

A line
break.

And a ruler


Next is a simple html table.

redwhiteblue