0
why <br/> tag has no end tag?
4 Antworten
+ 8
<br> (correct HTML5) and similar tags like <hr> are called 'void elements'. Apparently, they don't need a closing tag because they don't have any content. If there was content like in <h1>A Heading</h1> the closing tag is needed to tell browsers and screenreaders (for blind people) the heading ends right here after 'Heading'.
0
does that mean its a single action rather than content?
0
because it is void tag and not require closing tag
- 1
because it's unary tag