1
What’s the difference between using />
and </
to close an HTML tag?
Example1:
<div>
<img src="caminho"/>
</div>
Exemplo2:
<div>
<img src="caminho"></img>
</div>
I know that both do the same, however between the two options there is one that is the most correct? and why?
There is no "the most correct", they are different cases.
– bfavaretto