I\'ve tried checking other answers, but I\'m still confused — especially after seeing W3schools HTML 5 reference.
I thought HTML 4.01 was supposed to \"allow\" singl
Both
and
are acceptable in HTML5, but in the spirit of HTML,
should be used. HTML5 allows closing slashes in order to be more compatible with documents that were previously HTML 4.01 and XHTML 1.0, allowing easier migration to HTML5. Of course,
is also acceptable, but to be compatible with some older browsers, there should be a space before the closing slash (/
).