Bird
0
0

Identify the error in this HTML:

medium📝 Analysis Q6 of 15
SEO Fundamentals - On-Page SEO
Identify the error in this HTML:
<img src='cat.png' alt=Cat picture>
AIncorrect src attribute
BMissing quotes around alt text
Calt attribute should be empty
Dimg tag must be closed with </img>
Step-by-Step Solution
Solution:
  1. Step 1: Check alt attribute syntax

    The alt attribute value must be enclosed in quotes to be valid HTML.
  2. Step 2: Review other attributes

    The src attribute is correct, alt should not be empty, and img is a self-closing tag without .
  3. Final Answer:

    Missing quotes around alt text -> Option B
  4. Quick Check:

    Alt text must be quoted [OK]
Quick Trick: Always quote alt text values [OK]
Common Mistakes:
  • Omitting quotes around alt text
  • Closing img tag incorrectly
  • Leaving alt attribute empty when description needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SEO Fundamentals Quizzes