Which of the following elements have both the opening and the closing tags in HTML?
Advertisements
Question
Which of the following elements have both the opening and the closing tags in HTML?
Options
<br>
<h1>
<hr>
<img>
MCQ
Advertisements
Solution
<h1>
Explanation:
The <h1> tag is a container element in HTML, meaning it requires both an opening (<h1>) and a closing (</h1>) tag, unlike self-closing tags like <br>, <hr>, and <img>.
shaalaa.com
Is there an error in this question or solution?
