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 9219149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:02:21+00:00 2026-06-18T03:02:21+00:00

So we are using some rich snippets and they use the html5 markup scheme.

  • 0

So we are using some rich snippets and they use the html5 markup scheme.

Our problem is the itemscope attribute doesn’t have a value.

<div itemscope itemtype="http://schema.org/LocalBusiness">

This cause our old products html validation to fail because it thinks it’s an empty tag. Does google and markup rules work the same if you assign it a value of 1 like so.

<div itemscope="1" itemtype="http://schema.org/LocalBusiness">

It’s a work around for now until we can properly update our validation methods but that is a farther out project.

So basically is there a proper syntax to make this still valid for Googles Rich Snippet rules, html5 and older validation engines prior to html5?

  • 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-06-18T03:02:22+00:00Added an answer on June 18, 2026 at 3:02 am

    (This answer is basically copied from Peter Murray, specifically these two comments.)

    The HTML5 spec allows for boolean attributes with a value of an empty string or the attribute name:

    If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute’s canonical name, with no leading or trailing whitespace.

    So either this:

    <div itemscope="" itemtype="http://schema.org/LocalBusiness">
    

    or this:

    <div itemscope="itemscope" itemtype="http://schema.org/LocalBusiness">
    

    is valid HTML5.

    To be sure that Google recognizes itemscope="itemscope" correctly, he (Peter Murray) created an example page and ran it through Google’s rich snippet validator. From the results, you can see that Google picked up the data (an Event item) correctly.

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

Sidebar

Related Questions

I have some rich text created using the flex (flash builder 4) rich text
I am using php to output some rich text. How can I strip out
I have been using some Javascript to create a text field once an certain
I remember using some attribute on the getter/setter that would limit the input to
I have Xcode 4.2. At some point the rich text just stopped working. The
I m using a rich:calendar to display Date in my application But some how
Can anyone point me to some rules to follow when using using Rich Text
i am using rich faces. <rich:tabPanel id=feedModifyDetails switchType=client> <rich:tab id=ftpDefaultValuePanel header=FtpDefaults> some code </rich:tab>
I am using a TextView to show some text I have formatted from HTML:
We are contemplating using Erlang for our new project that involves some amount of

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.