HTML Text Formatting Tags

Tag Description Example Output
<b> Defines bold text Bold Text
<strong> Defines important text (strong emphasis) Strong Text
<i> Defines italic text Italic Text
<em> Defines emphasized text Emphasized Text
<u> Defines underlined text Underlined Text
<mark> Defines marked or highlighted text Highlighted Text
<small> Defines smaller text Small Text
<del> Defines deleted (strikethrough) text Deleted Text
<ins> Defines inserted text Inserted Text
<sub> Defines subscript text H2O
<sup> Defines superscript text X2
<code> Defines computer code text printf()
<pre> Defines preformatted text
Line 1
Line 2
<q> Defines a short quotation This is a quote
<blockquote> Defines a block quotation
This is a block quote
<abbr> Defines an abbreviation HTML
<cite> Defines the title of a work Web Technologies