3 ms·
FYI: the trailing slash is completely useless on HTML tags in the HTML serialisation. It doesn’t close HTML tags, it’s just ignored by the parser for XML compat
by chrismorgan 6y ago
FYI: the trailing slash is completely useless on HTML tags in the HTML serialisation. It doesn’t close HTML tags, it’s just ignored by the parser for XML compatibility. I advise against including it, because it’s simple visual noise, and misleading (people may come to think they can close tags that way, as in XML; but you can’t, and it’s only valid on empty elements like <meta>, <link> and <img>).