HTML Tutorial

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: 

image

<i> – Italic Text

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

Example:

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

Output: 

image

<u> – Underlined Text

  • Adds an underline.

Example:

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

Output: 

image

<small> – Small Text

  • Displays smaller text.

Example:

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

Output: 

image

<sup> – Superscript

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

Example:

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

Output: 

image

<sub> – Subscript

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

Example:

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

Output: 

image

 

 

 

Previous
Article 10 of 14
Next