[BACK]Return to paragraph.out_html CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / man / SS

File: [cvsweb.bsd.lv] / mandoc / regress / man / SS / paragraph.out_html (download)

Revision 1.5, Wed Jul 6 14:35:02 2022 UTC (22 months, 3 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +4 -4 lines

While the HTML standard allows multiple <h1> elements in the same
document, <h1> is intended for top level headers, and most of the
sections in a manual page can hardly be considered top-level.
It is more usual to use <h1> only for the main title of the document
of for the site name.

Consequently, move .Sh/.SH from <h1> to <h2> and .Ss/.SS from <h2>
to <h3>, freeing <h1> for use by header.html in man.cgi(8).

Discussed with Anna Vyalkova <cyber at sysrq dot in>.

<section class="Ss">
<h3 class="Ss" id="First_subsection"><a class="permalink" href="#First_subsection">First
  subsection</a></h3>
<p class="Pp">This text immediately follows a subsection header.</p>
<p class="Pp">This is a paragraph.</p>
</section>
<section class="Ss">
<h3 class="Ss" id="Second_subsection"><a class="permalink" href="#Second_subsection">Second
  subsection</a></h3>