Which of the following is an empty tag in HTML?
- A.The paragraph tag
- B.The line break tag
- C.The table tag
- D.The anchor tag
Show answer
Explanation
The correct answer is B, the line break tag. An empty or void tag has no closing tag because it encloses no content; it simply performs an action at the point where it is written, and the line break tag, written as br, moves the following text to a new line. The other standard empty tags are hr for a horizontal rule, img for an image and input for a form control. A is wrong because the paragraph tag is a container: it has an opening and a closing tag and the text of the paragraph sits between them. C is wrong because the table tag is a container that encloses rows and cells, and leaving it unclosed breaks the layout. D is wrong because the anchor tag is a container too; the words that become clickable are placed between its opening and closing tags, while the destination goes in the href attribute.