+ 2
Whats The difference?
Anyone what's the difference <img src="image.jpg"> And <img src="image.jpg"/>
4 ответов
+ 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=" " />
+ 3
Both are identical
as, / inside the tag is optional for those tags which need not to be closed
Like img, br, input, etc
+ 2
Thanx for fast reply :)