Skip to main content
HTML Validation

Bad value “” for attribute “(width|height)” on element “iframe”: The empty string is not a valid non-negative integer.

About This HTML Issue

The attributes width and height of <iframe> elements expect a non-negative integer, so an empty string is not allowed. Either define the correct dimension, or remove this attribute.

Learn more:

Last reviewed: March 08, 2023

Was this guide helpful?

Find issues like this automatically

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

Ready to validate your sites?
Start your free trial today.