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>

  11. Marked Text: <mark>

  12. Small Text: <small>

  13. Deleted Text: <del>

  14. Inserted Text: <ins>

The HTML <b> element defines bold text, without any extra importance. The HTML <strong> element defines strong text, with added semantic "strong" importance.

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.