Skip to main content
HTML Validation

Bad value X for attribute “height” on element “iframe”: Expected a digit but saw Y instead.

About This HTML Issue

The value used in the height attribute on element iframe is not a valid integer. Remove any leading or trailing spaces from the attribute value.

Here’s an example:

<iframe width="560" height="315" src="your-video-link" frameborder="0" allowfullscreen></iframe>

Last reviewed: April 04, 2025

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.