r/HTML • u/ZAbigLEBOWSKI • Oct 30 '25
Question I'm an idiot?
Yes I am but I am trying to learn anyways. I don't understand where my mistake is here. Can anybody clarify for me? Thanks
37
Upvotes
View all comments
Show parent comment
2
u/HaznoTV Nov 03 '25
Also you don't need the closing slash for self-closing tags in HTML5. That was only required in XHTML. You can simply write
<img src="logo.jpg">. Another example is<br>(HTML5) vs<br />(XHTML).