Use of tags sub, sup, text-align, address and abbr - CSU953 - CSE 2026 - Shoolini University

2. Write a few lines with the use of tags sub, sup, text-align, address, and abbr.

This file will write a few lines with the use of tags.

sub: Subscript moves the text down comparative to the normal text.

sup: Superscript move the text up comparative to the normal text

abbr: This is used to write an abbreviation of a content.

address: This tag is used to create a syntactical address in the file.

text-align: This is an inline style property which can be used to provide give the text a custom alignment.

Hierachy / Place of writing the tags in order:
  1. title is declared in the head of the html
  2. heading is decleared inside the body
  3. p is decleared inside the body
  4. bg-color is defined inline usder style property of the tag inside / in the body
  5. details is used to summarize a content under a dropdown carousal.

Code

                    
<!doctype html>
    <head>
        <title>CSU953 LAB 3 - CSE 2026</title>
    </head>
    <body>
        <p style="text-align:left">This paragraph with left aligned with <sub>subscript</sub> and <sup>superscript<sup> text.</p>
        <address>
            <abbr title="World Health Organization">WHO</abbr> <br />
            The above address is abbreviated.
        </details>
    </body>
</html>
                    
                

Output

This paragraph with left aligned with subscript and superscript text.

WHO
The above address is abbreviated.