Possible Duplicate:
Space Before Closing Slash?
Hi,
If I remember correctly we have it in the first place as some old version of Netscape choked if we didn’t add the space (it would think the node never ended).
But is it really necessary today?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the HTML5 specs, void elements don’t need the self closing
/character.Their exact phrasing is
They list void elements as
area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbrI may be understanding it wrong, but that seems like the following are all valid for html5
So it seems it really depends on the doctype you use