Skip to main content
HTML Validation

Bad value “” for attribute “aria-valuenow” on element “div”: The empty string is not a valid floating point number.

About This HTML Issue

The aria-valuenow attribute requires a valid numeric value and cannot be an empty string.

The aria-valuenow attribute is used on range-type widgets like progress bars, sliders, and spinbuttons to indicate the current value. It must be a valid floating point number — for example, 0, 50, or 3.5. An empty string ("") is not a number, so the validator rejects it.

If the current value is unknown or indeterminate, you should remove the aria-valuenow attribute entirely rather than setting it to an empty string. This is common with indeterminate progress bars where the completion percentage isn’t known yet.

When present, aria-valuenow should fall between aria-valuemin and aria-valuemax. All three attributes work together to communicate the state of a range widget to assistive technologies.

Bad Example

<div role="progressbar"
  aria-valuenow=""
  aria-valuemin="0"
  aria-valuemax="100">
  Loading...
</div>

Good Example — Known Value

<div role="progressbar"
  aria-valuenow="50"
  aria-valuemin="0"
  aria-valuemax="100">
  50% complete
</div>

Good Example — Indeterminate State

<div role="progressbar"
  aria-valuemin="0"
  aria-valuemax="100">
  Loading...
</div>

In the indeterminate example, omitting aria-valuenow tells assistive technologies that the progress is ongoing but the exact value is not known.

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