Skip to main content
HTML Validation

Bad value “” for attribute “itemprop” on element “div”.

About This HTML Issue

The itemprop attribute cannot be an empty string — it must contain a valid property name when present.

The itemprop attribute is part of the HTML Microdata specification and is used to assign a property name to an element within an itemscope. When a search engine or parser encounters itemprop, it expects a meaningful token that identifies the type of data being described, such as "name", "description", or "url".

If you don’t need to mark up the element with microdata, simply remove the itemprop attribute entirely. If you do need it, provide a valid property name that matches the vocabulary you’re using (e.g., Schema.org).

HTML Examples

❌ Invalid: empty itemprop

<div itemscope itemtype="https://schema.org/Product">
  <div itemprop="">This causes a validation error</div>
</div>

✅ Fix: provide a valid property name or remove the attribute

<div itemscope itemtype="https://schema.org/Product">
  <div itemprop="description">A great product</div>
</div>

Or, if microdata is not needed:

<div>
  <div>No microdata needed here</div>
</div>

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Help us improve our guides

Was this guide helpful?
🌍 Trusted by teams worldwide

Validate at scale.
Ship accessible websites, faster.

Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.

Scheduled Reports
API Access
Open Source Standards
$7 / 7 days

Pro Trial

Full Pro access. Cancel anytime.

Start Pro Trial →

Join teams across 40+ countries