htmlweb

Why do some `img` tags have no end tag while others do?


I read in tutorials that img tags don't have ending tag. But, while inspecting html of various pages I noticed that some img tags have ending tag </img> or <img ... /> and some don't have ending tag and appear just <img ... >. In what cases they don't have an ending tag?


Solution