Logo
HTMLCSSJavaScriptReactjsnewContactUpdates

Get started today

HTMLCSSJavaScriptReactjsnewContactUpdates

Tools

Resume BuilderQR GeneratorVS Code Editor

Connect

GitHubWhatsApp Channel
doctype
elements

HTML Tag

By Saket Bhatnagar•June 15, 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: July 15, 2025

Join Our Community

Login to Join

© 2025 Saket Bhatnagar. All rights reserved.

    ☕