#HTML's formatting tags
HTML formatting elements are designed to display special types of text:
<span>– Custom formatting; does not change style by itself<b>– Bold text<strong>– Important text<i>– Italic text<em>– Emphasized text<mark>– Marked text (highlighted)<small>– Smaller text<del>– Deleted text (strikethrough)<ins>– Inserted text (underlined)<sub>– Subscript text<sup>– Superscript text
Example:
<p> Paragraph <span> custom formatting </span> </p>
<p> Paragraph <b> bold text </b> </p>
<p> Paragraph <strong> important text </strong> </p>
<p> Paragraph <i> italic text </i> </p>
<p> Paragraph <em> emphasized text </em> </p>
<p> Paragraph <mark> marked text </mark> </p>
<p> Paragraph <small> smaller text </small> </p>
<p> Paragraph <del> deleted text </del> </p>
<p> Paragraph <ins> inserted text </ins> </p>
<p> Paragraph <sub> subscript text </sub> </p>
<p> Paragraph <sup> superscript text </sup> </p>
HTML Formatting
Note that some tags have similar default styles—for example, <b> and <strong> both render as bold by default, and <i> and <em> both render as italic—but their semantic meanings differ.