Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Add headings and paragraphs

Discussion in 'Programming' started by gilbertsavier, Aug 4, 2009.

  1. gilbertsavier

    gilbertsavier New Member Webmaster

    If you have used Microsoft Word, you will be familiar with the built in styles for headings of differing importance. In HTML there are six levels of headings. H1 is the most important, H2 is slightly less important, and so on down to H6, the least important.

    Here is how to add an important heading:

    <h1>An important heading</h1>

    and here is a slightly less important heading:

    <h2>A slightly less important heading</h2>

    Each paragraph you write should start with a <p> tag. The </p> is optional, unlike the end tags for elements like headings. For example:

    <p>This is the first paragraph.</p>

    <p>This is the second paragraph.</p>
    Adding a bit of emphasis

    You can emphasize one or more words with the <em> tag, for instance:

    This is a really <em>interesting</em> topic!
  2. malinky

    malinky New Member Webmaster

    Thanks for the info

Featured Resources (View All)

Share This Page