HTML – Formatting Tags

Formatting Tags: Formatting text for better look and feel. Some of the examples are

<html>
            <body>
                        <b> Bold Text </b> <br/>
                        <u> Underlined Text </u> <br/>
                        <i> Italic Text </i> <br/>
            </body>
</html>

We can format paragraphs as follows:

<html>
            <body>
                        <p> <b> Bold Text </b> </p>
                        <p> <u> Underlined Text </u> </p>
                        <p> <i> Italic Text </i> </p>
            </body>
</html>

We can combine multiple tags at a time:

<html>
            <body>
                        <p> <b> Bold Paragraph </b> </p>
                        <p> <b> <u> Bold and Underlined Paragraph </u> <b> </p>
                        <p><b><u><i>Bold, Italic and Underlined Paragraph</i></u><b></p>
            </body>
</html>

Subscript and Super Script formatting:

<html>
            <body>
                        <p> Ameerpet Tech <sup>R</sup> </p>
                        <p> Ameerpet Tech <sup>TM</sup> </p>
                        <p>Log <sub>2</sub> 2</p>
                        <p>H<sub>2</sub> SO <sub>4</sub></p>
                        <p>X<sup>2</sup> + Y <sup>2</sup></p>
            </body>
</html>
Scroll to Top