The <img> tag embeds an image in the page. It is a self-closing tag.
Required Attributes
src— path or URL to the imagealt— alternative text (describes the image for accessibility and SEO)
Optional Attributes
widthandheight— image dimensionsloading="lazy"— delays loading until needed (good for performance)
Tip: Always include the alt attribute. It helps screen readers and improves SEO.