Junior
Is it necessary to close single tags in HTML with />?
sobes.tech AI
Answer from AI
In HTML5, it is not necessary to close single tags (for example, <br>, <img>, <input>) with />. This rule was relevant for XHTML, but in HTML5, the syntax has become more flexible, based on SGML principles. Browsers correctly interpret single tags without the closing slash.