Logo
HTMLCSSJavaScriptReactjsnewResourcesContactUpdates
Join

Get started today

HTMLCSSJavaScriptReactjsnewResourcesContactUpdates

Tools

Resume BuilderQR GeneratorVS Code Editor

Connect

GitHubWhatsApp Channel
doctype
elements

HTML Tag

By Saket Bhatnagar•November 19, 2025•Beginner to Intermediate

Table of Contents

  1. tag
  2. We have two types of tags

tag

  1. 1An HTML tag is a keyword surrounded by angle brackets, < and >.
  2. 2They are used to mark up the content of a web page, and to specify how the content should be displayed in a web browser.
  3. 3Every tag in HTML perform specific tasks.
  4. 4Example :
    <html> : it means it is starting of Html tag. </html> : Here , '/' means it is ending of Html tag.
  5. 5The <html> tag represents the root of an HTML document.

We have two types of tags

  1. Container Tag (Paired tag)

    • 1 Those tags we have to close , we call them Container tag.
    • 2 Example : < html > </html> , <head></head>, <body> </body>, etc.
  2. Non Container tag

    • 1Non Container tags are knows as void tag , empty tag and singleton tag because they don't have cloasing tag , so we cannot put content in between tag
    • 2Those tags we need not to close , we call them non Container tag
    • 3 Example : <br>,<img> , <input> , etc.

Share this article

Last updated: December 19, 2025

Saket Bhatnagar

I build products, share the playbooks, and pass along everything I learn so you can ship faster.

GitHubLinkedInYouTubeWhatsApp Channel

Quick Links

  • Updates
  • Resources
  • Resume Builder
  • Contact

WhatsApp

Builders Group

Real-time notes from my builds, weekend challenges, and accountability threads.

Shipping Notes Channel

Launch alerts + bite-sized lessons.

© 2025 Saket Bhatnagar. All rights reserved.

Always building, always learning.