When I was learning about HTML, I read that there are two types of tags , which are required to 'close', ( <tag></tag>
, ex <div></div>
) and auto However, I came across an inconvenience (or not), which is the following, closing or not my auto-close tags, they work in the same way, for example:
This
<tag/>
It's the same as this (note that I did not close the tag with the toolbar)
<img src="#"/>
The same can be fixed in tags <img src="#" />
, <img src="#">
, etc.
My question is, what's the difference between closing or not these tags ? What risks do I run?