|
Sections: Introduction | Section 1 | Section 2 | Section 3 |
Section Two: Part A | Part B | Part C | Part D | Part E | Part F | Part G | Part H | Part I |
The Heading Tag Often times, when creating a web page, you need to incorporate headings into your web page to let users know what is being presented on the page. Stop and ThinkVisit the DoDEA web page and another web page you visit frequently and consider the following questions:
Heading TagsWhen you think of headings, you typically think of bolded, large text. Thankfully, HTML includes six pre-defined heading tags that can be used to easily create headings of varying size. The tags are listed below in order from the biggest heading text displayed to the smallest heading text displayed:
As you may have noticed, the heading number size is contrary to the size of the heading text displayed – meaning the smallest heading number creates the largest heading text and the largest heading number creates the smallest heading text. To use any of these tags, simply place them in an HTML document where you would like to have a heading and place the heading text in between the tags. Let's See it in Action: Heading Tags with AlignmentLike the <p> </p> tags, headings provide specific meaning for visitors who use assistive technology by typically signaling a new section within a webpage. Also like <p> </p> tags, attributes can be added to heading tags to modify their display and functionality. Adding the style="" attribute to the opening tag <h1> tag and giving it a "color value" will force the browser to display a different color as opposed to the default color; grayscale black. So:
will change all the text between the opening <h1> and closing </h1> tags to blue.
|
© All rights reserved. |