Next Up Previous Contents
Next: 4.3 Backmatter - notes and bibliography
Up: 4 The structure of the document
Previous: 4.1 Overall structure
[ID index][Keyword index]

4.2 Sectioning

Includes sect, subsect, subsubsect and subsubsubsect, which contain the section contents, preceded by subhead, which contains the section title.

The sect element and friends contain the section content (note that this is different to the behaviour of LaTeX and HTML, in both of which the sectioning commands enclose only the section heading).

The content of the sectioning elements start with a subhead element, which in turn contains a title element, and the two are followed by the section content. Note, however, that since the subhead and title start and end tags are both omissable (see Section 3.4), you may omit both, and follow the sect start tag immediately with the section title. That is, the structure is formally

<sect><subhead><title>Section title</title><subhead>
<p>Section body</p>
</sect>
but this may be abbreviated to just
<sect>Section title
<p>Section body

The sectioning elements have an ID attribute, which allows you to specify a unique label with which you can refer to the section. For both the sect and subsect elements, this ID attribute is required by the DTD (when the EnforceLinkPolicy feature is enabled - see Section 4.1). See also Section 4.6 for more detail on cross-referencing.


Next Up Previous Contents
Next: 4.3 Backmatter - notes and bibliography
Up: 4 The structure of the document
Previous: 4.1 Overall structure
[ID index][Keyword index]
The Starlink SGML Set
Starlink System Note 70
Norman Gray, Mark Taylor
21 April 1999. Release DR-0.7-13. Last updated 24 August 2001