Basic HTML Styles

This paragraph is in the Normal paragraph style, which is named <P> in HTML.

This is a Heading 1 style, which is named <H1> in HTML.

This is a Heading 2 style, which is named <H2> in HTML.

This is a Heading 3 style, which is named <H3> in HTML.

This is a Heading 4 style, which is named <H4> in HTML.

This is a Heading 5 style, which is named <H5> in HTML.

The style that can be used to separate parts of a document is the Horizontal Rule, which is named <HR> in HTML. It looks like this:


Lists are formatted by using the <UL> style for unordered lists and the <OL> style for ordered (numbered) lists.

The <UL> style:

  • Item one
  • Item two
  • Item three

The <OL> style:

  1. Item one
  2. Item two
  3. Item three

Modern browsers also support a small set of character-formatting styles. The most common are the following:

The Emphasis style, which is named <EM> in HTML. It is used to apply an italic style to characters.

The Strong style, which is named <STRONG> in HTML. It is used to apply a bold style to characters.

The Underline style, which is named <U> in HTML. It is used to apply an underline style to characters.

The StrikeThrough style, which is named <STRIKE> in HTML. It is used to apply a strike through style to characters.