headings

<dtb:h1>foo</dtb:h1> <dtb:h2>bar</dtb:h2>
foo
bar

paragraph

<dtb:p>foo</dtb:p>
foo

unordered list

<dtb:list type="ul"> <dtb:li>mango</dtb:li> <dtb:li>lychee</dtb:li> <dtb:li>carambola</dtb:li> <dtb:li>rambutan</dtb:li> <dtb:li>sugar</dtb:li> <dtb:li>lime juice</dtb:li> </dtb:list>
mango
lychee
carambola
rambutan
sugar
lime juice

ordered list

<dtb:list type="ol" enum="1" class="steps"> <dtb:li>peel fruit.</dtb:li> <dtb:li>cut fruit in bite sized pieces.</dtb:li> <dtb:li>sprinkle fruit with sugar and lime juice to taste.</dtb:li> <dtb:li>stir salad.</dtb:li> <dtb:li>chill for one hour.</dtb:li> </dtb:list>
peel fruit.
cut fruit in bite sized pieces.
sprinkle fruit with sugar and lime juice to taste.
stir salad.
chill for one hour.

nested preformatted list

<dtb:list type="pl"> <dtb:li> well-known tropical fruit <dtb:list type="pl"> <dtb:li>* pineapple</dtb:li> <dtb:li>* papaya</dtb:li> </dtb:list> </dtb:li> <dtb:li> exotic tropical fruit <dtb:list type="pl"> <dtb:li>* rambutan</dtb:li> <dtb:li>* mangosteen</dtb:li> </dtb:list> </dtb:li> </dtb:list>
well-known tropical fruit
* pineapple
* papaya
exotic tropical fruit
* rambutan
* mangosteen

list items with or without paragraph

<dtb:list> <dtb:li>foo</dtb:li> <dtb:li> <dtb:p>bar</dtb:p> baz </dtb:li> </dtb:list>
foo
bar
baz

definition list

<dtb:dl> <dtb:dt>mango</dtb:dt> <dtb:dd>tropical fruit with sweet golden flesh</dtb:dd> <dtb:dt>lychee</dtb:dt> <dtb:dd>tropical fruit with deep red leathery skin and clear white flesh</dtb:dd> <dtb:dt>carambola</dtb:dt> <dtb:dd>star shaped tropical fruit with tart lemon-pineapple flavour</dtb:dd> <dtb:dt>rambutan</dtb:dt> <dtb:dd>egg-shaped tropical fruit similar to lychees with leathery skin covered in soft red hairs</dtb:dd> </dtb:dl>
mango: tropical fruit with sweet golden flesh
lychee: tropical fruit with deep red leathery skin and clear white flesh
carambola: star shaped tropical fruit with tart lemon-pineapple flavour
rambutan: egg-shaped tropical fruit similar to lychees with leathery skin covered in soft red hairs

definition list with multiples of dt and dd

<dtb:dl> <dtb:dt>Punt</dtb:dt> <dtb:dd>Kick a ball</dtb:dd> <dtb:dd>Take a bet</dtb:dd> </dtb:dl> <dtb:dl> <dtb:dt>Color</dtb:dt> <dtb:dt>Colour</dtb:dt> <dtb:dd>Any hue except white or black</dtb:dd> </dtb:dl>
Punt: Kick a ball
Take a bet
Color
Colour: Any hue except white or black

table with header

<dtb:table> <dtb:thead> <dtb:tr> <dtb:th>Parent Company</dtb:th> <dtb:th>Divested Business</dtb:th> </dtb:tr> </dtb:thead> <dtb:tr> <dtb:td>U.S. Sprint</dtb:td> <dtb:td>Cellular phone</dtb:td> </dtb:tr> <dtb:tr> <dtb:td>Union Pacific</dtb:td> <dtb:td>Oil, gas</dtb:td> </dtb:tr> <dtb:tr> <dtb:td>Viacom</dtb:td> <dtb:td>Cable TV</dtb:td> </dtb:tr> </dtb:table>
Parent Company
Divested Business
U.S. Sprint
Cellular phone
Union Pacific
Oil, gas
Viacom
Cable TV

table with caption, header, footer and body

<dtb:table> <dtb:caption>caption</dtb:caption> <dtb:thead> <dtb:tr> <dtb:th>header</dtb:th> </dtb:tr> </dtb:thead> <dtb:tfoot> <dtb:tr> <dtb:th>footer</dtb:th> </dtb:tr> </dtb:tfoot> <dtb:tbody> <dtb:tr> <dtb:td>body</dtb:td> </dtb:tr> </dtb:tbody> </dtb:table>
caption
header
body
footer

table with colspan and rowspan

<dtb:table> <dtb:thead> <dtb:tr> <dtb:th colspan="4">A1</dtb:th> </dtb:tr> </dtb:thead> <dtb:tbody> <dtb:tr> <dtb:td colspan="2">B1</dtb:td> <dtb:td colspan="2" rowspan="2">B2</dtb:td> </dtb:tr> <dtb:tr> <dtb:td rowspan="2">C1</dtb:td> <dtb:td>C2</dtb:td> </dtb:tr> <dtb:tr> <dtb:td colspan="3">D2</dtb:td> </dtb:tr> </dtb:tbody> </dtb:table>
A1
B1
B2
C1
C2
D2

footnote

<dtb:p> Morley's favorite vacation spot was the Bay of Islands<dtb:noteref idref="#fn12" class="footnote">12</dtb:noteref> on New Zealand's North Island. </dtb:p> <dtb:note id="fn12" class="footnote"> <dtb:p> 12. Morley once described the area as "paradise in twenty shades of blue". </dtb:p> </dtb:note>
Morley's favorite vacation spot was the Bay of Islands on New Zealand's North Island.
12. Morley once described the area as "paradise in twenty shades of blue".

annotation

<dtb:p> The speed of a sailing vessel was measured in <dtb:annoref idref="#anno_4">knots</dtb:annoref>. </dtb:p> <dtb:annotation id="anno_4"> <dtb:p> The term "knot" is derived from the practice of counting the number of knots on a line unreeled in a set period of time from a device known as a chip log. </dtb:p> </dtb:annotation>
The speed of a sailing vessel was measured in knots.
The term "knot" is derived from the practice of counting the number of knots on a line unreeled in a set period of time from a device known as a chip log.

sidebar with paragraph

<dtb:sidebar> <dtb:p>foo</dtb:p> </dtb:sidebar>
foo

sidebar without paragraph

<dtb:sidebar> foo </dtb:sidebar>
foo

two images that share a caption

<dtb:imggroup id="imggrp_43"> <dtb:img id="img_12" src="orion62.jpg" alt="Orion Nebula by visible and ultraviolet light"/> <dtb:img id="img_13" src="orion3.jpg" alt="Young stars in Orion Nebula"/> <dtb:caption imgref="img_12 img_13"> Many young stars lie inside the mass of gas and dust that forms the Orion Nebula. </dtb:caption> </dtb:imggroup>
Many young stars lie inside the mass of gas and dust that forms the Orion Nebula.

mathml with asciimath encoding

<dtb:p> <math> <semantics> <mrow> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mo>-</mo> <mi>b</mi> <mo>±</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>-</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </mrow> </msqrt> </mrow> <mrow> <mn>2</mn> <mi>a</mi> </mrow> </mfrac> </mrow> <annotation encoding="ASCIIMath">x = (-b +- sqrt(b^2-4ac))/(2a)</annotation> </semantics> </math> </dtb:p>
x = - b ± b 2 - 4 a c 2 a x = (-b +- sqrt(b^2-4ac))/(2a)
x = (-b +- sqrt(b^2-4ac))/(2a)

page number inside a paragraph

<dtb:p> foo <dtb:pagenum>1</dtb:pagenum> bar </dtb:p>

with floating page numbers

foo bar
1

without floating page numbers

foo
1
bar

with page numbers disabled

foo bar

table that spans multiple pages

<dtb:table> <dtb:tr> <dtb:td/> <dtb:td/> </dtb:tr> <dtb:pagenum>256</dtb:pagenum> <dtb:tr> <dtb:td/> <dtb:td/> </dtb:tr> </dtb:table>

with floating page numbers

256

without floating page numbers

256

with page numbers disabled

preserve whitespace

<dtb:p> <dtb:code xml:space="preserve"> <dtb:strong>case</dtb:strong> "o": glBegin(GL_QUAD_STRIP) <dtb:strong>for</dtb:strong>(i=0;i<=12; i++) { angle = 3.14159 / 6.0 * i; glVertex2f(0.4 * cos(angle), 0.4 * sin(angle)); glVertex2f(0.5 * cos(angle), 0.5 * sin(angle)); } glEnd(); <dtb:strong>break</dtb:strong>;</dtb:code> </dtb:p>
case "o":
glBegin(GL_QUAD_STRIP)
for(i=0;i<=12; i++) {
angle = 3.14159 / 6.0 * i;
glVertex2f(0.4 * cos(angle), 0.4 * sin(angle));
glVertex2f(0.5 * cos(angle), 0.5 * sin(angle));
}
glEnd();
break;