+ 1

Why do images not have a closing tag?. Also what does "src=" before the image url mean in html?

Html tags

3rd Aug 2022, 1:28 PM
Ehigai Salvation
Ehigai Salvation - avatar
1 Answer
+ 6
savvy 1. The image tag :- <img> is a standalone tag which means an empty tag and hence it doesn't have a closing tag However you can put "/" at the end Eg : <img /> ( but this is optional ) 2. "src" is the url link of the image which is to be displayed on the webpage
3rd Aug 2022, 1:42 PM
Suparna Das
Suparna Das - avatar