Skip to main content

HTML Guide

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

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>

Learn more:

Related W3C validator issues