HTML Text Formatting



 HTML contains a few components for characterizing text with a unique significance.

<!DOCTYPE html>

<html>

    <body>

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

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

        <p>This is<sub> subscript</sub> and <sup>superscript</sup></p>

    </body>

</html>


HTML Organizing Components

Arranging components were intended to show extraordinary sorts of text:

<b> - Striking text

<strong> - Significant text

<i> - Italic text

<em> - Underscored text

<mark> - Checked text

<small> - More modest text

<del> - Erased text

<ins> - Embedded text

<sub> - Addendum text

<sup> - Superscript text


HTML <b> and <strong> Components

The HTML <b> component characterizes strong text, with next to no additional significance.

<!DOCTYPE html>

<html>

    <body>

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

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

    </body>

</html>

The HTML <strong> component characterizes text with solid significance. The substance inside is normally shown in striking.

<!DOCTYPE html>

<html>

    <body>

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

            <p><strong>This text is important!</strong></p>

    </body>

</html>

Post a Comment

0 Comments