HTML Tutorial – Text Formatting

HTML uses tags like <b> and <i> for formatting output. These HTML tags are called formatting tags.

HTML Text Formatting Examples

<!DOCTYPE html>
<p><b>How to make text bold</b></p>
<p><strong>How to make text strong</strong></p>
<p><i>How to make text italic</i></p>
<p><em>How to emphasized text</em></p>
<p>This is <sub>subscript</sub> and <sup>superscript</sup></p>
Try it yourself »

Common HTML Text Formatting Tags

<b> tag specifies bold text.
<strong> tag renders the same as <b>, which is bold text.
<i> tag specifies italic text.
<em> tag emphasized text.
<sub> tag specifies subscript.
<sup> tag specifies superscript.