top of page

HTML Text Formatting

Text Formatting is used to define special types of text.

<b>          - Bold text

<i>           - Italic text

<mark>    - Marked text

<small>    - Smaller text

<del>       - Deleted text

<ins>        - Inserted text

<sub>       - Subscript text

<sup>       - Superscript text

The HTML <b> tag defines bold text, without any importance.

Example

<body>

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

</body>

The HTML <i> tag defines italic text.

Example

<body>

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

</body>

The HTML <mark> tag defines highlighted text.

Example

<body>

<mark> This text is marked. </mark>

</body>

The HTML <small> tag defines smaller text.

Example

<body>

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

</body>

The HTML <del> tag defines line-through text.

Example

<body>

<del> This text is striked. </del>

</body>

The HTML <ins> tag defines an underlined text.

Example

<body>

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

</body>

The HTML <sub> tag defines a subscripted text, i.e the text appears below the normal text line.

Example

<body>

<p> This text is <sub> subscripted. </sub> </p>

</body>

The HTML <sup> tag defines an superscripted text, i.e the text appears above the normal text line

Example

<body>

<p> This text is <sup> superscripted. </sup> </p>

</body>

Let's take a test here. After you pass this test, you'll get a new badge for yourself.

bottom of page