Some More HTML tags

I already explained about the HTML tags with example refer to page no 2. In this article, I will discuss some more HTML tags.

  1. <br> (Line Break) / <hr> (Horizontal Rule)

    • Both line break and horizontal rule are self-closing tags

    • <br> Inserts a line break, creating a new line in the text.

    • <hr> Inserts a horizontal line, typically used to visually separate content.

        <p>Hello this is HTML tutorial</p>
        <p>this is second line</p>
        <br>
        <p>This is line after br tag</p>
        <hr>
        <p>this line is after hr </p>
  1. <b> (Bold) / <i> (Italic) / <u> (Underline)

    • to make content bold, italic, and underline the enclosed text.
     <p>This is <b>bold</b> text.</p> 
     <p>This is <i>italic</i> text.</p> 
     <p>This is <u>underlined</u> text.</p>

  1. <sup> (Superscript) / <sub> (Subscript)

    • Displays the enclosed text in superscript (above the normal text line).

    • Displays the enclosed text in subscript (below the normal text line).

        <p>10<sup>2</sup> equals 100.</p>
        <p>H<sub>2</sub>O is the chemical formula for water.</p>
      

  2. <mark>(Highlight) / <small> (Small Text) / <del> (Deleted/Strikethrough) / <ins> (Inserted/Underlined)

    • <mark> Highlights text with a background color, typically yellow by default.

    • <small> Displays smaller text.

    • <del> Displays text with a strikethrough, indicating that it has been "deleted."

    • <ins> Displays text that is marked as inserted (often underlined by default).

            <p>This is <mark>highlighted</mark> text.</p>
            <p>This is <small>smaller</small> text.</p>
            <p>This is <del>struck through</del> text.</p>
            <p>This is <ins>inserted</ins> text.</p>