HTML and CSS Reference
In-Depth Information
Creating Headings
Headings are typically used as section titles above paragraphs. They help define the hier-
archy of our document with larger headings identifying more important topics and smaller
headings denoting issues of lesser importance within the context of that larger topic. To
make sure our document follows a logical outline, we will always start with the largest head-
ing (level 1) and work our way down.
HTML supports up to six levels of headings starting at <h1>, the largest, and finishing with
<h6>, the smallest, although headings below <h4> are seldom necessary. This helps separate
the document into a proper and more readable structure. By default, the browser will display
headings in boldface at various sizes, depending on the heading level.
Note: The actual look of headings can be controlled with stylesheets.
To organize our web page with headers:
1) In the body section of our HTML document, type <hn>, in which n is a number
from 1 to 6, depending on the level of header that we want to create.
2) Type the contents of the header.
3) Type </hn> in which n is the same number used in step 1.
By including headings, the sample content for our CV web page would look like this:
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8”>
<title>Curriculum Vitae</title>
</head>
<body>
 
Search WWH ::




Custom Search