Version | W3C//DTD HTML 3.2 Final//EN | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Content Notation |
The allowable content of the elements is shown using a content model syntax.
Examples from HTML 3.2 FinalHTML 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.
HEAD ContentThe allowable content of the HEAD element is: ( TITLE & ISINDEX ? & BASE ? ) +( SCRIPT | STYLE | META | LINK )This means that a HEAD element can contain two groupings of possible elements. The first grouping consists of a TITLE element, an optional single ISINDEX, and an optional single BASE element. These can occur in any order. In the second grouping, you can have any number of the following elements appear multiple times at various positions within HEAD: SCRIPT, STYLE, META, or LINK. |