HTML also defines special elements for defining text with a special meaning.
Formatting elements were designed to display special types of text:
- <b> - Bold text
- <strong> - Important text
- <i> - Italic text
- <em> - Emphasized text
- <mark> - Marked text
- <small> - Small text
- <del> - Deleted text
- <sub> - Subscript text
- <sup> - Superscript text
A. HTML <b> and <strong> Elements
The HTML <b> and <strong> element defines bold text, without any extra importance.
Example: <p>This <b>text</b> is bold</p>
B. HTML <i> and <em> Elements
The HTML <i> element defines italic text, without any extra importance.
Example: <p>This <i>text</i> is bold</p>
C. HTML <small> Element
The HTML <small> element defines smaller text:
Example: <p>This <small>text</small> is bold</p>
D. HTML <mark> Element
The HTML <mark> element defines marked or highlighted text:.
Example: <p>This <mark>text</mark> is bold</p>
E. HTML <del> Element
The HTML <del> element defines
Example: <p>This <del>text</del> is bold</p>
F. HTML <sub> Element
The HTML <sub> element defines subscripted text.
Example: <p>This <sub>text</sub> is bold</p>
G. HTML <sup> Element
The HTML <sup> element defines superscripted text.
Example: <p>This<sup> text</sup> is bold</p>