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:
<i>
– Italic Text
- Makes text italic.
- Only for styling, no extra meaning.
Example:
<p>This is <i>italic</i> text.</p>
Output:
<u>
– Underlined Text
- Adds an underline.
Example:
<p>This is <u>underlined</u> text.</p>
Output:
<small>
– Small Text
- Displays smaller text.
Example:
<p>This is <small>small</small> text.</p>
Output:
<sup>
– Superscript
- Text appears above the normal line.
- Used in math, powers, etc.
Example:
<p>2<sup>3</sup> = 8</p>
Output:
<sub>
– Subscript
- Text appears below the normal line.
- Used in chemical formulas, footnotes, etc.
Example:
<p>H<sub>2</sub>O = Water</p>
Output: