HTML Headings¶
HTML headings appear in the body
element. They have different levels and get smaller in font as you increase the heading level. Sometimes the first level heading <h1>
is
use as the title of the document. If you have a large document then <h2>
might be the chapter headings and <h3/>
might be the chapter sections.
1 2 3 4 5 |
|
Here is how these would render:
Article Title
Chapter Heading
Chapter Section
Chapter Subsection
Chapter Sub-Subsection
Note that by default, headings always appear on their own line. However, you can use CSS to change the font size, font color, spacing around the headers and add border and color to the background of a header.