document-v12.dtd
.This is a simple paragraph. Most documents contain a fair amount of
paragraphs. Paragraphs are called <p>
.
With the <p xml:space="preserve">
attribute, you can declare
that whitespace should be preserved, without implying it is in any other
way special.
A number of in-line elements are available in the DTD, we will show them
inside an unordered list (<ul>
):
<li>
).<code>
element in the
previous item?<sub>
and <sup>
elements to show content above or below the text
baseline.<em>
<strong>
elements.<icon>
s, too.<img>
element:
<link href="faq.html">
<link href="#section">
<link href="faq.html#forrest">
<jump href="faq.html">
<a ... target="_top">
<fork href="faq.html">
<a ... target="_blank">
<dl>
was used inside
the previous list item. We could put another
Or even tables.. |
| |
or inside lists, but I believe this liberty gets quickly quite hairy as you see. |
So far for the in-line elements, let's look at some paragraph-level elements.
<fixme>
element is used for stuff
which still needs work. Mind the author
attribute!<note>
element to draw attention to something, e.g. ...The <code>
element is used when the author can't
express himself clearly using normal sentences ;-)<warning>
element).Apart from unordered lists, we have ordered lists too, of course.
You can use sections to put some structure in your document. For some
strange historical reason, the section title is an attribute of the
<section>
element.
Just some second section.
Which contains a subsection (2.1).
Enough about these sections. Let's have a look at more interesting
elements, <source>
for instance:
Please take care to still use a sensible line-length within your source elements.
And now for a table:
heading cell | heading cell |
---|---|
data cell | data cell |
Not much of attributes with <table>
, if you ask me.
And a figure to end all of this.
doc-v12 enhances doc-v11 by relaxing various restrictions that were found to be unnecessary.