Headings
September 17, 2001
A special paragraph format allows you to create headings, just as you can with the <h1> through to <h6>
elements in HTML. The headings format can take one of four possible sizes, which are actually known as
levels (it can actually take more than four, but after level 4, all further headings are rendered at the same size):
- Level 1 is rendered as 2em
-
Level 2 is rendered as 1.5em
-
Level 3 is rendered is 1.3em
-
Level 4 and beyond are all rendered as 1.2em
Note that em is a typographic term and refers to the size of the font, relative to the default font size
on the web page
The heading format takes the following syntax, setting the level number as a separate option:
{heading level=level-number, text }
So, for example, the code for a document containing several headings would look like this:
|| headings.curl
{curl 1.7 applet}
{applet license = "development"}
{heading level=1, A level one heading }
{br}
{heading level=2, A level two heading }
{br}
{heading level=3, A level three heading }
{br}
{heading level=4, A level four heading }
{br}
{heading level=10, A level ten heading }
and would be displayed as follows:
As you can see, while the level 10 size is legal, it is rendered the same as the level 4 size heading. Also,
note that the spacing is uniform throughout the heading levels.
Displaying Text
Early Adopter Curl
Numbered Headings
|