This page offers a quick reference by examples of all the elements specified by the XHTML 1.1 W3C standard.
This version of XHTML groups the elements by module, and this is how they are presented here, with a very brief description and a section of examples of use.
There are already other quick reference pages, like the one on xhtml.com, or this one or this other one with examples. But this page wants to be a single-page brief reference; here it is not explained which attributes an element supports, but that can be seen reading the source code of the examples provided for each element. This page could be used as a summary about XHTML or as a precious tool to design complete (wrt. XHTML elements) CSS stylesheets for your XHTML pages, giving a quick glance at the results.
The XHTML 1.1 document type is made up of the XHTML modules shown below. The elements, attributes, and minimal content models associated with these modules are defined in the XHTML Modularization document [XHTMLMOD]). The elements are listed here for information purposes, but the definitions in [XHTMLMOD] should be considered definitive. In this document, the module names in the list below link into the definitions of the modules within the current version of [XHTMLMOD].
body
, head
, html
, title
abbr
, acronym
, address
, blockquote
, br
, cite
, code
, dfn
, div
, em
, h1
, h2
, h3
, h4
, h5
, h6
, kbd
, p
, pre
, q
, samp
, span
, strong
, var
h1
| h2
| h3
| h4
| h5
| h6
address
| blockquote
| div
| p
| pre
abbr
| acronym
| br
| cite
| code
| dfn
| em
| kbd
| q
| samp
| code
| strong
| var
a
a
element to the Inline content set
of the Text Module
dl
, dt
, dd
, ol
, ul
, li
dl
| ol
| ul
)+ and adds this set to the Flow content set of the
Text Module.
object
, param
object
element to the Inline content set
of the Text Module.
b
, big
, hr
, i
, small
, sub
, sup
, tt
hr
element is added to the
Block content set of the Text Module. In addition,
the b
, big
, i
, small
, sub
, sup,
and tt
elements are
added to the Inline content set of the Text Module.
del
, ins
del
and ins
elements
are added to the Inline
content set of the Text Module.
bdo
bdo
element is added to the
Inline content set of the Text Module.
button
, fieldset
, form
, input
, label
, legend
, select
, optgroup
, option
, textarea
form
| fieldset
input
| select
| textarea
| label
| button
caption
, col
, colgroup
, table
, tbody
, td
, tfoot
, th
, thead
, tr
table
element to the
Block content set of the Text Module.
img
img
element to the Inline content set of
the Text Module.
area
, map
When this module is used, the map
element is added to the Inline content set
of the Text Module.
ismap
on img
meta
noscript
, script
style
elementstyle
attributelink
base
XHTML also uses the Ruby Annotation module as defined in [RUBY]:
We don't show explicit examples for elements in the
Structure module because they are Singleton elements, already used for the
structure of this very page. Although you can style the body
and html
elements.
The Text module elements can be used inside a text to enrich it semantically. They are all style-able.
Not very widespread these days.Better looser than poser!
<code></code>
element.Happiness is the limit of our mood function when “how I currently feel” approaches to “how I want to feel”is flawed...
A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea.
After a paragraph, definitely!(__) (oo) /------\/ / | || * /\---/\ ~~ ~~ ...."Have you mooed today?"...Aaah, this is c^Hhow.
If you go left you go right, if you go right you go wrong.
$ tidy -xml -access 3 -utf8 -i -m $THIS_FILENo warnings or errors were found.
For the list modules we show grouped examples, a dd
or a
li
element alone does not have much sense.
For the Forms module a grouped example is provided:
For the Table module a grouped example is provided:
Month | Savings | Void | Void |
---|---|---|---|
Sum | $280 | 0 | |
January | $100 | 0 | 0 |
$200 | 0 | 0 | |
February | $80 | 0 | 0 |