Image syntax
To embed an image in the HTML page, we use the <img>
tag. It's an empty one, so you don't have to worry about closing it. The src
and alt
attributes usually are the first thing in the <img>
tag. The most common image file formats supported by all browsers are APNG, GIF, ICO, JPEG, PNG, WEBP, and SVG.[1]