HTML Image Tag Explained
Images are embedded with the <img> tag. It is a void element: use src for the image URL and alt for accessibility.
The Elements
src is the image URL; alt is the description for accessibility and when the image cannot load.
Void Element
Always include alt. Use meaningful text for content images; use alt="" for purely decorative images.
Accessibility
Screen readers announce βalt textβ and use the alt attribute. Search engines use it too. Never omit alt for content images.
