Adding Images in HTML
Images are added using the <img> tag. This tag does not have a closing tag.
Image Example
<img src="image.jpg" alt="Sample image">
Why the ALT Attribute is Important
- Improves accessibility
- Helps search engines understand images
- Shown if image fails to load