Junior
Is it necessary to close self-closing tags with /> in HTML5?
sobes.tech AI
Answer from AI
No, in HTML5, closing single tags (for example, <img>, <input>, <br>, <hr>, <link>, <meta>, <source>, <track>, <area>, <keygen>, <param>) with a / before the closing angle bracket (>) is not required and is an optional syntax inherited from XHTML. Modern HTML5 parsers correctly handle both closed and unclosed single tags.