1. Computing

Discuss in my forum

Write HTML Headlines

By , About.com Guide

There are six tags in HTML that create headlines: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. These heading tags help you to divide up your content so that they are easier to read and skim. Here is how to add a headline to your HTML.

Difficulty: Easy
Time Required: 2 minutes

Here's How:

  1. Open your HTML editor and load the page you want to add headlines to.
  2. Place your cursor in front of the text that you want to make into a headline. If it's not already written, write it and then move the cursor back.

    For example, I might want have the following text as my headline:

    [cursor]Heroic Border Collie Saves Boy's Life
  3. In front of the headline, type:
    <h1>
    So in my example, it would read:
    <h1>Heroic Border Collie Saves Boy's Life
  4. Place the cursor at the end of the headline. For example:
    <h1>Heroic Border Collie Saves Boy's Life[cursor]
  5. Then close the heading tag:
    </h1>
    And in my example:
    <h1>Heroic Border Collie Saves Boy's Life</h1>

Tips:

  1. Keep your headlines in order. H1 comes first, H2 headlines are directly below H1, H3 are directly below H2, and so on.
  2. Most pages only have one H1 headline for SEO purposes. All other headlines on the page are H2 and lower.

What You Need

  • HTML editor
  • web page without headlines

©2013 About.com. All rights reserved.