H

HTML Handbook

Clean • Professional

Physical Tags

1 minute

 Physical Tags (Presentational Tags)

  • Used only for visual style
  • They don’t give any extra meaning. (non-semantic)
  • Example: <b>, <i>, <u>, <small>, <sup>, <sub>

<b> – Bold Text

  • Makes text bold (only for styling, no extra meaning).

Example:

<p>This is <b>bold</b> text.</p>

Output: 

learn code with durgesh images

<i> – Italic Text

  • Makes text italic.
  • Only for styling, no extra meaning.

Example:

<p>This is <i>italic</i> text.</p>

Output: 

learn code with durgesh images

<u> – Underlined Text

  • Adds an underline.

Example:

<p>This is <u>underlined</u> text.</p>

Output: 

learn code with durgesh images

<small> – Small Text

  • Displays smaller text.

Example:

<p>This is <small>small</small> text.</p>

Output: 

learn code with durgesh images

<sup> – Superscript

  • Text appears above the normal line.
  • Used in math, powers, etc.

Example:

<p>2<sup>3</sup> = 8</p>

Output: 

learn code with durgesh images

<sub> – Subscript

  • Text appears below the normal line.
  • Used in chemical formulas, footnotes, etc.

Example:

<p>H<sub>2</sub>O = Water</p>

Output: 

learn code with durgesh images

Article 0 of 0