HTML Quick Reference:
<hn> Syntax
Syntax Diagram for <hn>
Opening Tag |
Content |
Closing Tag |
Open |
Parameter |
= |
Value |
Close |
<hn |
align |
= |
left |
> |
header text |
</hn> |
right |
center |
where n is an integer between 1 and 6, inclusive.
<hn> Description
"<hn>" is shorthand for "<h1>
or <h2> or <h3> or <h4> or
<h5> or <h6>", and it is used because the
syntax for all the levels of headers is identical. The header text is printed
in a bold, non-italicized font whose size depends on the level of heading
specified: "<h1>" gives the largest, and "<h6>"
gives the smallest.
- align
- Specifies the horizontal alignment of the heading. The default is
left.
<hn> Examples
This markup:
Level-1 Heading
Centered Level-2 Heading
Right-Justified Level-3 Heading
A Really Long, Stupendously Lengthy, Level-4
Heading Whose Length Does Nothing But Show How
Headings Are Broken Across Lines If Necessary
Level-5 Heading
Level-6 Heading
. . .causes the following to be displayed:
Level-1 Heading
Centered Level-2 Heading
Right-Justified Level-3 Heading
A Really Long, Stupendously Lengthy, Level-4
Heading Whose Length Does Nothing But Show How
Headings Are Broken Across Lines If Necessary
Level-5 Heading
Level-6 Heading
Last Modified: