Publishers of technology books, eBooks, and videos for creative people

Home > Articles

  • Print
  • + Share This
This chapter is from the book

Creating Section Headers

(X)HTML provides for up to six levels of headers in your Web page for separating your page into manageable chunks.

To organize your Web page with headers

  1. In the body section of your (X)HTML document, type <hn>, where n is a number from 1 to 6, depending on the level of header that you want to create.
  2. Type the contents of the header.
  3. Type </hn> where n is the same number used in step 1.

Example 3.10. You can use headers to give your document structure, like an outline.

<head>

<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
<title>Antoni Gaudí - Introduction</title>
</head>
<body>


<h1>Antoni Gaudí</h1>



   <h2>La Casa Milà</h2>



   <h2>La Sagrada Família</h2>



</body>
headers_ie.jpg

Figure 3.11 The most common default display for first level headers is 24 pixels, Times New Roman, in boldface.

  • + Share This
  • 🔖 Save To Your Account