Home CSS Header Tags Customize Header Tags
Search MS Office A-Z   |   Search Web Pages/ Design A-Z

Customize Header Tags

Use ID tags to modify header tags:

This example shows how you can use the ID attribute with a pair of headline tags. The <H1> tags and the first set of <H2> tags are called bound tags because they have a unique name assigned to them. The second set of <H2> tags aren’t bound to any ID attribute, so they appear as a "normal" headline in the browser window.

<HTML>
<HEAD>
<STYLE type=”text/css”>
<!--
#FirstHeading {color: #000080;}
#SecondHeading {color: #800000;}
-->>
</STYLE>
<TITLE>ID, Class, Style, and Title</TITLE>
</HEAD>
<BODY>
<H1 id=”FirstHeading”>This heading has the “FirstHeading” value that can be referred to elsewhere in the document.</H1>
<H2 id=”SecondHeading”>This heading has the “SecondHeading” value that can be referred to elsewhere in the document.</H2>
<H2>This heading has no ID attribute.</H2>
</BODY>
</HTML>