Everyday Computing Advanced Computing The Internet At Home Health, Mind & Body Making & Managing Money Sports & Leisure Travel Beyond The Classroom
Building Web Sites
Doing Business Online
Graphics & Animation
Using the Internet
Moms, Dads, and Grads -- Win $500!
Do-It-Yourself Web Sites For Dummies

The Benefits of HTML Headings


Adapted From: Do-It-Yourself Web Sites For Dummies

One of the more common text formatting options in HTML is the heading style. In HTML, you gain many advantages to using the heading styles (H1, H2, and so on) to style text that serves as titles or headlines. That's because heading styles are designed to be displayed in relative sizes no matter which text size users set in their Web browsers. When you use headings, H1 is the largest, H2 is the next largest, and so on, decreasing in size through H6. Another benefit to using headings is that search engines generally give priority to keywords that are formatted with the H1 or H2 tags, because the use of a heading tag implies that the text has greater importance on a page.

Because you can redefine any HTML tag with CSS, you can alter the display of heading tags while still enjoying the benefits. You can also combine styles so that text formatted with an H1 tag can appear one way when placed within the sidebar of a page and appear another way when placed within the main content area. That's why many CSS layouts that come with Dreamweaver include styles like #header H1 — because a style with that name redefines text that's formatted with the H1 tag only if it appears within a Div that has the ID "header."

You can apply Heading tags to text by selecting any text on a page and then using the drop-down list in the Property inspector at the bottom of the screen to select a Heading option.

Related Articles
Observing Good Linking Practices
Deciding Your Use for HTML
Expanding Efficiency with Cascading Style Sheets
Exterminating Web Bugs
Introducing the Advantages of Style Sheets
Related Titles
Creating Web Pages All-in-One Desk Reference For Dummies, 3rd Edition
The Internet For Dummies, 11th Edition
HTML, XHTML, and CSS All-in-One Desk Reference For Dummies
HTML, XHTML & CSS For Dummies, 6th Edition
HTML 4 For Dummies, 5th Edition