Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:55:33+00:00 2026-05-28T05:55:33+00:00

After adding Microdata to my pages, I got many errors from W3C validator complaining

  • 0

After adding Microdata to my pages, I got many errors from W3C validator complaining the itemprop:

there is no attribute “itemprop“

From code like this:

<p itemprop="description">...</p>

This is my DOCTYPE and html tag

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:fb="http://www.facebook.com/2008/fbml">

How to fix the validator errors?

p.s. Previously I have the validator error for itemscope as well. But after I changed it to itemscope="itemscope" then the error is fixed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:55:34+00:00Added an answer on May 28, 2026 at 5:55 am

    Documents with HTML 5 plus Microdata used to validate successfully but because of Bug #14020 the validator has become more strict on declaring documents as “valid”. Your document is valid HTML 5 + Microdata, but is not strictly an HTML 5-only document.

    You can use http://Validator.nu/ to validate HTML 5 + Microdata.

    The site linked to in Fabian’s answer is not the W3C site he mentions, so I wouldn’t trust that as much for HTML 5 as I might have for earlier (pre-2000) versions of HTML.

    The reason you had to change itemscope to itemscope=”itemscope” is that previous browsers and specifications have defined incompatible interpretations (sometimes true, sometimes false) of code such as itemscope (no value), itemscope=”” (an empty string is interpreted as false by XPath) and itemscope=”false” (any non-empty string sometimes interpreted as true). Thus the statement in the spec that “The values ‘true’ and ‘false’ are not allowed on boolean attributes.” However, “true” and “false” can appear in certain attribute values because they are allowed on enumerated attributes such as draggable. See bullet #4 regarding coding boolean values.

    The workarounds (elsewhere) to insert invalid code with scripting may hide that code from the validator, but it won’t create a document that is any more valid than using static HTML code because the HTML 5 specification is defined in terms of the internal document model, not the external representation. See HTML 5 Specifications focus on the DOM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After adding a boolean attribute to an object, fetching that object from the datastore
I am suddenly getting the following errors from SQLite after adding a new transaction:
After adding a test for error code to MKReverseGeocoder's callback, got a linker error
After adding the key value pairs in NSMutableDictionary, when i retrive the key/values from
We use Sajax for adding small Ajax code to sites. After running into a
After adding RelayCommand class (that uses CommandManager class) into my Silverlight App I've got
I am building my App after adding some code but I get the Un-Recongnized
After adding this short js code: $(document).ready(function() { //check to see if it's an
i am adding some data from my jsp page( Add.jsp ). after adding that
I'm creating a PDF using iTextSharp and after adding all my pages, I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.