Is it necessary to use a forward slash at the end inside the img tag? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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