HTML Tags

HTML tags are special keywords enclosed in angle brackets (<>) that define elements in an HTML document. Most tags come in pairs:

  •  Opening tag: <tagname>
  •  Closing tag: </tagname>
  •  Some tags are self-closing: <tagname />

HTML tags are categorized into two main types based on whether they require a closing tag or not:

  • 1️⃣ Paired Tags (Container Tags)
  • 2️⃣ Singular Tags (Self-Closing Tags)
Paired Tags (Container Tags) 
🔹 Definition: These tags must have both an opening and a closing tag.
🔹 Syntax: <tagname> Content </tagname>
🔹 Example: <p>Hello World</p>, <h1>Heading</h1>

Singular Tags (Self-Closing Tags) 
🔹 Definition: These tags do not require a closing tag.
🔹 Syntax: <tagname /> (In HTML5, the / at the end is optional)
🔹 Example: <br>, <img>, <hr>, <input>

Qus. 1 : Which tag is a container?

  1. <body>
  2. <br>
  3. <hr>
  4. <img>
Qus. 2 : Fundamental HTML Block is known as

  1. HTML Body
  2. HTML Tag
  3. HTML Attribute
  4. HTML Entity
Qus. 3 : An HTML file starts with the tag:

  1. <TITLE>
  2. <BODY>
  3. <BODY>
  4. <HTML>
Qus. 4 : The entire web document is contained within ____

  1. Comments
  2. Tags
  3. Web page
  4. HTML element
Qus. 5 : Which tag inserts a line horizontally on your webpage ?

  1. <hr>
  2. <line>
  3. <line directon = "horizontal">
  4. <tr>
Qus. 6 : Which character is used to represent when a tag is closed in HTML?

  1. #
  2. !
  3. /
  4. \
Qus. 7 : In HTML, the tags are

  1. in upper case
  2. case-sensitive
  3. in lowercase
  4. not case sensitive

Programs

HTML code to display country name in red color

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad