Account
Categories

HTML Tag


A tag is a building block of a web page. It clearly displays various elements such as text, images, links, headings, and paragraphs in an organized manner. It allows users to see and read the content easily.

For example: <p> — It is used to create and show paragraphs on a web page.

<p>This is a paragraph tag.</p>

HTML tags are of two types:

  • Paired Tags: These have both an opening and a closing tag.
    Example:
    <p>This is a paragraph tag.</p>
  • Self-Closing Tags: These tags don’t need a separate closing tag; they close themselves.
    Example:
    <img src="image.jpg" alt="Example Image">