+ 8
Is there a difference between these closing tags
> and />
2 Respuestas
+ 5
> is html, /> is for xml and xhtml, which imo is better for using a standardized syntax, at least for html4. now that html5 is becoming the standard instead that doesn't seem to be as much of a big deal (although i always prefer the 'self closing' tag when i code, still to this day i can't write <br> i always go with <br />, guess im still self validating code in my head lol)
+ 2
no... both of them work fine...
but it's better to use /> because your HTML code might get errors in Validation of code.
so /> is better to use instead of >