+ 1

Is it necessary to use a forward slash at the end inside the img tag?

<img src=" " alt=" ">

18th Jul 2020, 1:21 PM
ANJALI PATHAK
ANJALI PATHAK - avatar
7 odpowiedzi
+ 1
ANJALI PATHAK But it's not necessary to use / at the end
18th Jul 2020, 1:40 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
+ 4
Since HTML5, it is not necessary.
18th Jul 2020, 1:21 PM
Ore
Ore - avatar
+ 1
Best way is "try to check ones by executing with and without tags" and observe differences.. You find side effects if any or not..
18th Jul 2020, 1:34 PM
Jayakrishna 🇮🇳
+ 1
The best way to check is code by yourself by executing it with and without slash ...
18th Jul 2020, 1:37 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
+ 1
Thank you so much guys for all your answers & help☺
18th Jul 2020, 1:44 PM
ANJALI PATHAK
ANJALI PATHAK - avatar
+ 1
You're welcome.. Happy coding..
18th Jul 2020, 2:09 PM
Jayakrishna 🇮🇳
0
ANJALI PATHAK wlcm dude😇😇
18th Jul 2020, 1:44 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar