So I have been coding for a little bit now and have noticed something about the <img>
tag. I have always closed this tag using <img src="image.jpg">
, however, I have noticed that some programmers have used <img src="image.jpg"/>
.
Can someone please clarify for me and maybe others who have the same question which is the correct syntax?
Thank you~!