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
- Bold: <b>
- Italics: <i>
- Important: <strong> (Output is similar to bold)
- Emphasize: <em> (Output is similar to italics)
- Subscript: <sub>
- Superscript: <sup>
- Computer Code: <code>
- Abbreviation: <abbr>
- Quote: <blockquote>
- Inline Quote: <q>
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.