Question
What is the ALT attribute in HTML?
Answer
The ALT attribute provides alternative text for an image if the image
cannot be displayed. It is also used by screen readers and helps search engines
understand the image content.
Example
<img src="logo.png" alt="WPDeveloperTips Logo">
Key Points
- Improves accessibility
- Helps SEO
- Required for valid HTML