back

CodeWithRahul

More
  • Home
  • Cources
  • Tutorials
  • Tutorials
  • Projects
  • Notes
  • Contact
  • Work With Us
  • HTML
  • CSS
  • JAVASCRIPT
  • CC++
  • PHP
  • PYTHON
  • REACT JS
  • DSA

RahulGoswami.com

Create an account
  • INTRODUCTION
    • HTML Introduction
    • HTML Working
    • HTML Prerequisite
    • HTML Document
    • HTML Structure 1
    • HTML Page
    • HTML Structure 2
    • HTML Editor
    • HTML View Source
    • HTML Tags
    • HTML Element
    • VS Code
    • installation
  • HTML BASIC TAGS
    • Skeletal Tags
    • Heading Tags
    • Paragraph Tag
    • Horizontal Line Tag
    • Line Break Tag
    • Center Tag
    • Preserve
    • Formatting Tag
  • HTML FORMATTING TAGS
    • Monospaced Font
    • Text Abbreviation Tag
    • Acronym Tag
    • Text tags
  • HTML QUOTATIONS
    • Blockquote Tag
    • Quote Tag
    • Text Citation Tag
    • Text Direction Tag
    • Address Text Tag
    • Code Tag
  • HTML ATTRIBUTES
    • HTML Attributes
    • HTML Core
    • Attributes 1
    • Attributes 2
    • Attributes 3
    • Internationalization
    • HTML Generic
  • HTML LINKS
    • HTML Links
  • HTML COMMENTS
    • HTML Comments
  • HTML IMAGES
    • HTML Images
  • HTML LISTS
    • HTML Lists
    • HTML Unordered List
    • HTML Ordered List
    • HTML Definition List
  • HTML TABLES
    • HTML Tables
  • HTML BLOCK ELEMENT
    • HTML Block
    • Elements
  • HTML INLINE ELEMENT
    • HTML Inline
    • Elements
  • HTML FORMS
    • FORM Introduction
    • More on forms

    HTML Tags

    What is an HTML tag?

    If you want to build a beautiful website. Tags will help you to do so.
    A tag is like a container for either content or other HTML tags. Tags are words enclosed within < and> braces.
    They are like keywords which defines that how web browser will format and display the content
    Some of the tags are mentioned below,
    <html>
    <head>
    <title>
    <body>

    These are also known as “Starting tags” or “Opening tags”.

    The following tags end with a closing tag i.e.

    • <html> tag has its closing </html> tag
    • <head> tag has its closing </head> tag
    • <title> tag has its closing </title> tag
    • <body> tag has its closing </body> tag

    Closing tags are used to close the content in between them. These are the tags enclosed within angle braces <,> and a forward slash /. For example: </html>. These closing tags are also known as “Ending tags”.

    Some tags don’t have their corresponding closing tags and these are known as “Stand-Alone tags” / “Empty tags” / “Self-closing tags”. For example:

    • <br /> tag</html> tag
    • <hr /> tag</head> tag
    • <img> tag</title> tag

    NOTE:In these Empty tags, they have a space between the characters and the forward-slash (/). This is because if you omit this space, older browsers will have trouble rendering that line break.

    pictorial representation of tags:-

    htmlOpenCloseAnalogy
    Owner of this WebPage Image

    CodeWithRahul

    Copyright © 2023 CodeWithRahul.com