Loading

Formatting

  • Formatting is used to give a proper look to the texts like bold, italic, marked etc.
TagPurpose
<b>Bold text
<strong>Important text
<i>Italic text
<em>Emphasized text
<mark>Marked text
<small> Smaller text
<del>Deleted text
<ins>Inserted text
<sub>Subscript text
<sup>Superscript text
  

Syntax:

<b>text......</b>
<i>text......</i>

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Formatting</title>
</head>

<body>
    <b>Bold</b>
    <i>Italic</i>
    <strong>Important</strong>
    <sub>Subscript</sub>
    <sup>Superscript</sup>
</body>

</html>

Output: