Explore Topics

An img element must have an alt attribute, except under certain conditions

Last Updated : 18 Apr, 2025 - Asked By Ashok

I got this error after validating my HTML Code.

An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

From line 84, column 13; to line 84, column 59

     <td><img src="https://flagsapi.com/US/flat/64.png"></td>

How can I fix this? 

html 5  alt attribute 

Answers
Your Answer



Other Resources

Quiz Image
Quiz

Test your knowledge with interactive quizzes.

Interview Questions Image
Interview Questions

Prepare for interviews with curated question sets.

Q&A Image
Q&A

Ask your coding-related doubts and get answers.

Certification Image
Certification

Earn certifications to enhance your resume.

internships Image
Internships

Hands-on projects to improve your skills.

Quiz Image
Quiz

Test your knowledge with interactive quizzes.

Interview Questions Image
Interview Questions

Prepare for interviews with curated question sets.

blog Image
Blogs

Add your technical blogs and read technical topics.

Certification Image
Certification

Earn certifications to enhance your resume.

Q&A Image
Q&A

Hands-on projects to improve your skills.