Is the end tag </img> necessary for the <img> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is the end tag </img> necessary for the <img> tag?

9th Sep 2016, 10:21 AM
Rohit Karunakaran
Rohit Karunakaran - avatar
5 Answers
+ 4
Not in html5. Other tags not needing closure include input, br, hr, meta for example.
9th Sep 2016, 11:14 AM
Zen
Zen - avatar
+ 1
No..
9th Sep 2016, 11:54 AM
mohammadreza amiri
mohammadreza amiri - avatar
0
if u use its good for you
9th Sep 2016, 4:20 PM
khalade shifullah
0
No it's not as we write <img /> This "/" works as a closer We don't need </img> because all this tags and reference id's are written within <img/> tag like < img scr=" " alt=" " coords=" " />
9th Sep 2016, 5:48 PM
Rishit Sonecha
Rishit Sonecha - avatar
- 1
no its not.
9th Sep 2016, 12:58 PM
Farshad Assarpour
Farshad Assarpour - avatar