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>
-
Marked Text: <mark>
-
Small Text: <small>
-
Deleted Text: <del>
-
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.