LIVE Course for free

Rated by 1 million+ students
Get app now
0 votes
210 views
in Programming by (24.2k points)
closed by
Which of the following is not a void element of HTML?
1. <img.../>
2. <div .../>
3. <hr />
4. <br/>

1 Answer

0 votes
by (24.2k points)
selected by
 
Best answer
Correct Answer - Option 2 : <div .../>

Concept:

  • HTML elements with no content are called empty elements. Empty elements can be closed in the start tag.
  • <br> is an empty element without a closing tag (the <br> tag defines a line break).

Explanation:

An empty element is an element of HTML that do not have any child nodes.
<br> — inserts a line break
<hr> — inserts a horizontal line
<img> -- used to display images
<input> —  it’s an input
<link> — defines relationships between the documents
<meta> — changes metadata of your web page
<source> — inserts a media source

<ins> — A text with a deleted part, and a new, inserted part:

Therefore Option 2 is the correct answer

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...