階層内でトピックを開始します。
<sn [id=name]>heading topic text...
n は、レベル番号 (1、2、...、9 のいずれか) です。
<chapter> トピックは <s1> サブトピックを持つことができ、<s1> トピックは <s2> サブトピックを持つことができ、というように続いていきます。レベルはスキップできません。
セクションのヘッダは、<sn > タグと同じ行か次の行に置くことができます。したがって、ヘッダは必須です。セクション内のテキストはオプションです。
終了タグは通常省略されますが、いくつかの例では終了タグが必要です。たとえば、同じレベルにある <rsect> 要素がセクションの後に続く場合、セクションの終了タグは必須です。終了タグがないと、<rsect> 要素は直前のセクションのサブセクションと見なされます。
次の例では、トピック内に 3 つのレベルの階層があります。
<chapter>Running the Processor topic text... <s1>Getting Started To run the program, type in the usercode and your password. <s1>Customizing You may now set up this conversion program to change your computer from beige to red. <s2>Configuration Use either the disk drive or the tape drive to archive your files. <s3>Disk Drive Advantages See data sheet for specifications. <s3>Tape Drive Advantages See data sheet for specifications. <s2>Support If you really need help, call technical support.
次のマークアップでは、<rsect> セクションが階層内で同じレベルになるようにセクション終了タグ (<¥s1>) が使用されています。
<s1>first-level heading text <s1>first-level heading text<¥s1> <rsect>first-level heading text
反対に、終了タグを使用しないと、<rsect> セクションは 2 番目の <s1> セクションのサブトピックになります。
<s1>first-level heading text <s1>first-level heading text <rsect>second- level heading text