Skip to content
techsnow

HTML Basic Tags

Text Formatting Tags

HTML has tags that give special meaning or appearance to parts of your text.

TagResultMeaning
<strong>boldVery important text
<b>boldBold without extra importance
<em>italicStressed emphasis
<i>italicDifferent voice, technical terms, foreign words
<mark>highlightedMarked or highlighted text
<small>smaller textSide comments, fine print
<del>struck throughDeleted text
<ins>underlinedInserted text
<sub>H₂OSubscript
<sup>x²Superscript
<code>monospaceA piece of code

Example:

<p>Please <strong>save your work</strong> before closing.</p>
<p>I <em>really</em> love coding.</p>
<p>Water is H<sub>2</sub>O and 2<sup>3</sup> = 8.</p>
<p>Price: <del>Rs 2,999</del> <ins>Rs 1,999</ins></p>
<p>Search for <mark>HTML</mark> in the docs.</p>
<p>Run <code>npm install</code> first.</p>