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

> Canonical HTML version: https://rocketvalidator.com/html-validation/bad-value-for-attribute-itemprop-on-element-div
> Attribution: Rocket Validator (https://rocketvalidator.com)
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

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`

```html
<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

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

Or, if microdata is not needed:

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