Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson

Tags

     HTML Tag एक साधारण शब्द या अक्षर होता हैजो Angular Brackets (<>) से घिरा रहता है HTML Tags एक प्रकार के code होते है, जिनको दो Singular brackets (<>) के बीच उनका नाम लिखकर दर्शाया जाता है। हर tag की पहचान व उनका एक अलग काम होता है। एक Web page का ऊपरी भाग (head) बनाने से लेकर निचला (footer) व मध्य (Content Area) भाग बनाने तक मे इन्ही tags का use किया जाता है। इन Tags को कम्रशः दो भागों में बांटा गया है।

     <h1> A heading </h1>

Type of Tag

  1. Container / Pair tags
  2. Empty / Unpaired Tags.
  • Container Tag – Container tag को Pair या on-off tag के नाम से भी जाना जाता है| वैसे tags जिसमें opening और closing tags दोनों available होते हैं उसे Container / Pair / On-Off tag कहा जाता है| दुसरे शब्दों में कहें तो वैसे tags जो की pair यानि की जोड़ी में use होते हैं उसेContainer / Pair / On-Off tag कहा जाता है| closing tags और opening tag दोनों एक समान होते हैं लेकिन closing tags में tag name के पहले Forward slash (/) लगा हुआ रहता है|
    Ex: –
    <html> ……. </html>
    <head> ……. </head>
    <title>………</title>

<body> ……. </body>

  • Empty Tag – Empty tag को Singular या Stand Alone tag भी कहा जाता है| वैसे tag जिनके closing tags नहीं होते हैं उसे empty tag कहा जाता है| वैसा tag जिसके अन्दर content available नहीं होता है उसे empty tag कहा जाता है|
  • Ex: –
    <br>
    <area>
    <base>
    <hr>
    <img>
    <input>

Tags

A tag is a bit of text that acts as a point demarcation. To create a tag, HTML gives certain characters special meaning: the angle brackets < and >.

     Putting characters within angle brackets creates a tag.

     <h1> A heading </h1>

There are two tags:

Start tag or opening tag and End tag or closing tag. An end tag always matches a start tag, except that it has an extra forward slash after the opening angle bracket.

     <h1> A heading </h1>

Type of Tag

  • Container Tag

These types of HTML elements are specified by pair of tags as Start tag and end tag. Start tag consist of the tag name enclosed in left and right angular bracket. The end tag is identical to the start tag but starting with a slash(/).

Ex: –
<html> ……. </html>
<head> ……. </head>
<title>………</title>

<body> ……. </body>

  • Empty Tag – These types of HTML elements have only a start tag and no End tag. An empty element may or may not take attributes, which are given within angular brackets of the tag.
    Ex: –
    <br>
    <area>
    <base>
    <hr>
    <img>
    <input>
error: Content is protected !!