Account
Categories

HTML Tag


HTML tags are the building blocks of a web page. They are used to display different elements such as text, images, links, headings, and paragraphs in an organized way.

They help the browser understand how to show content properly so users can easily read and view it. This makes the web page more readable and structured.

HTML tags are of two types:

  • Paired Tags: These tags come with both opening and closing tags.

    Example:

    <p>This is a paragraph tag.</p>
  • Self-Closing Tags: These tags do not need a closing tag; they close themselves.

    Example:

    <img src="image.jpg" alt="Example Image">
Example
<p>This is a paragraph tag.</p>

<img src="image.jpg" alt="Example Image">