Problem Statement
Which statement about HTML tags is correct?
Explanation
Most HTML tags come in pairs, like the paragraph tag with opening and closing. However, some tags are self closing, like image, break, and input tags. HTML tags are not case sensitive, and they can be nested inside each other to create structure.
Code Solution
SolutionRead Only
<!-- Paired tags -->
<p>This is a paragraph</p>
<div>This is a division</div>
<!-- Self-closing tags -->
<img src="photo.jpg" alt="Photo">
<br>
<input type="text">
<!-- Nested tags -->
<div>
<p>Paragraph inside a div</p>
</div>