Share:
Notifications
Clear all

What are tags in HTML?

1 Posts
1 Users
0 Reactions
2,237 Views
(@rinki)
Posts: 13
Active Member
Topic starter
 

Tags in HTML are special keywords enclosed in angle brackets (< >) that define the structure and content of a web page.


🔹 Types of Tags:

  1. Opening Tag

    • Starts an element.

    • Example: <p>

  2. Closing Tag

    • Ends an element.

    • Example: </p>

  3. Self-Closing Tag

    • Doesn’t need a closing tag.

    • Example: <br>, <img>, <hr>

 
Posted : 02/08/2025 8:35 am
Share: