What's the difference between <tag></tag> and <tag /> in HTML? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Using the XHTML closing slash (/) on normal tags? Are self-closing tags valid in HTML5? I'm reviewing a lot of HTML code and also JavaScript that synthesizes HTML and I noted that if there's some tag without content inside the tag then there're two way to specify it. Either like this: <div id="container"></div> or like this: <div id="container" /> Is there any difference between the two? 回答1: Browsers normalize