Skip to main content

HTML Guide

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

The <iframe> element, used to embed another document inside the current document, accepts both attributes width and height which must be valid non-negative integers. Percentages are not allowed for these attributes.

Learn more:

Related W3C validator issues