Re: img tag onload not validated

pconver wrote:
> Validating http://sensibilidad.org.ar/sensibilidad/blog/adshow.asp 
> written in iso-8859-1, HTML 4.01 Transitional
> 
> Iím receiving  For //Line 100, Column 126//: *there is no attribute 
> "ONLOAD"*.
> 
> |><IMG onload=||*"*||resize(this)"|

In HTML 4.01 Transitional, only the BODY element may have an ONLOAD 
attribute:

http://www.w3.org/TR/REC-html40/struct/objects.html#edef-IMG

As you've put an ONLOAD attribute on an IMG element, the validator has 
correctly marked that as invalid.

Hope that helps.
--
Benjamin Hawkes-Lewis

Received on Sunday, 28 September 2008 20:40:53 UTC