+ 2

Whats The difference?

Anyone what's the difference <img src="image.jpg"> And <img src="image.jpg"/>

5th Dec 2017, 2:35 PM
Manideep
Manideep - avatar
4 odpowiedzi
+ 4
no difference.. both works perfectly.. the first IMG tag is not closed the second one is closed.. usually, some tags doesn't require to have closing tags.. like - img, br , input. but if u want to close these tags u can just add a / at the end <img src=" " />
5th Dec 2017, 2:39 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 3
Both are identical as, / inside the tag is optional for those tags which need not to be closed Like img, br, input, etc
5th Dec 2017, 3:20 PM
#RahulVerma
#RahulVerma - avatar
+ 2
Thanx for fast reply :)
5th Dec 2017, 2:41 PM
Manideep
Manideep - avatar