Bird
0
0

Identify the error in this XML sitemap snippet:

medium📝 Analysis Q6 of 15
SEO Fundamentals - Technical SEO Basics
Identify the error in this XML sitemap snippet:
<urlset>
  <url>
    <loc>https://example.com/page</loc>
    <lastmod>2024-13-01</lastmod>
  </url>
</urlset>
AThe <url> element is not allowed inside <urlset>
BThe date format in <lastmod> is invalid
CThe root element should be <sitemapindex> instead of <urlset>
DThe <loc> tag is missing a closing tag
Step-by-Step Solution
Solution:
  1. Step 1: Check the <lastmod> date format

    The date '2024-13-01' has '13' as month, which is invalid (months 1-12 only).
  2. Step 2: Verify other tags and structure

    <loc> is properly closed, <urlset> is correct root, <url> allowed inside <urlset>.
  3. Final Answer:

    The date format in <lastmod> is invalid -> Option B
  4. Quick Check:

    Date format validity = Invalid month [OK]
Quick Trick: Months must be 01 to 12 in dates [OK]
Common Mistakes:
  • Ignoring invalid month number
  • Assuming missing closing tags
  • Confusing root element names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SEO Fundamentals Quizzes