Hello. I was thinking about void elements. Should we consider the older versions of HTML when coding? I mean, like putting a slash(/) end of the void element. I read about it. Usually, they say it doesn’t have to be like that.
Should I consider older browser versions or older HTML versions when coding a web page?
That isn’t older HTML versions, the closing slash being mandatory is XHTML. It’s incredibly unlikely you’d manage to find a browser where it would cause an issue (unless you explicitly set the doctype of the HTML page to be XHTML instead of HTML)