<?xml version="1.0" encoding="utf-8"?>

Image syntax

Image syntax Bad Practice
Image syntax Best Practice

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]

Improve your UX & Product skills with interactive courses that actually work