HTML Formatting

HTML Text Formatting

HTML contains several elements for defining text with a special meaning.

  • <b> - Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
  • <mark> - Marked text
  • <small> - Smaller text
  • <del> - Deleted text
  • <ins> - Inserted text
  • <sub> - Subscript text
  • <sup> - Superscript text

Example

<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is <sub>subscript</sub> and <sup>superscript</sup></p>

Click on the "Try it Yourself" button to see how it works.

Try it Yourself »