Formatting tags are used to change the format of text in the output. All the formatting tags have start tag and end tag.

These elements affect only the presentation of a document and the markup is of no other use. You can also achieve a similar appearance using CSS.

Commonly Used Formatting Tags

  1. Bold: <b>
  2. Italics: <i>
  3. Important: <strong> (Output is similar to bold)
  4. Emphasize: <em> (Output is similar to italics)
  5. Subscript: <sub>
  6. Superscript: <sup>
  7. Computer Code: <code>
  8. Abbreviation: <abbr>
  9. Quote: <blockquote>
  10. Inline Quote: <q>

Horizontal Rule

The <hr /> element creates a horizontal rule across the page. It is an empty element. This is frequently used to separate distinct sections of a page where a new heading is not appropriate.