Version | -//W3C//DTD XHTML 1.0 Transitional//EN | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Content Notation |
The allowable content of the elements is shown using a content model syntax.
Examples from XHTML 1.0 Transitionalhtml ContentThe allowable content of the html element is: ( head, body )This means that an html element must contain exactly one head followed by exactly one body, in that order. dl ContentThe allowable content of the dl definition list element is: ( dt | dd )+This means that the dl element contains at least one dt or dd element, and maybe more. Don't get confused by the | symbol here--it does not mean that you have to choose between having
only a dt or dd
element.
The notation means you can choose either one of the elements within the ( and ) . But the
+ at the end means you must make this choice at least once, but you can
repeat it as often as you wish. So you can have any number of
dt or dd elements in a
dl element.
Note that this syntax does not constrain the
sequence or number of dt's (definition terms)
or dd's (definitions).
You could have a
dl element full of a hundred
dt's and just one
dd.
|