Re: POSSIBLE VALIDATOR ERROR

On 13 May 2019, at 22:06, Carknocker wrote:

> While checking the code on an HTML page iFrame your validator produced 
> the following error message:

Your screenshot indicates that you are using the Markup Validation 
Service, not the CSS Validator.

> It doesn't like the percentage value in height.
>
> However, this code functions correctly in the Internet Explorer, Edge, 
> Chrome, FireFox, and Opera browsers.
>
> Is the validator correct or what am I missing here?

The validator is correct.

 From https://www.w3.org/TR/html5/fullindex.html#attributes-table :

> height
>
> canvas; embed; iframe; img; input; object; video	
>
> Vertical dimension
>
> Valid non-negative integer

A percentage is not an integer.

You should avoid presentational attributes anyway. Use CSS.

Received on Tuesday, 14 May 2019 08:47:47 UTC