True or false? Every <img> element should have alternative text.
- True
- False
Explanation: The correct answer is True. Every img element should have alternative text, commonly referred to as “alt text” or “alt attribute.” Alt text provides a textual description of the image content, which is crucial for accessibility purposes and improving user experience for individuals who cannot see images, including those using screen readers or with slow internet connections. Alt text serves multiple important functions: it provides context and meaning to the image, helps visually impaired users understand the content, and serves as a placeholder if the image fails to load. Additionally, alt text is important for SEO (Search Engine Optimization) purposes, as it provides search engines with information about the image content, contributing to better indexing and ranking in search results. Therefore, ensuring that every img element has descriptive and accurate alternative text is essential for accessibility compliance, user engagement, and search engine visibility.