I have some existing code that I have been tasked with upgrading to a valid doctype of HTML4.01 strict.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
In the code I've come across an <iframe>, and this does not sit well with the w3 validator.
The w3 validator even seems to claim that <iframe> is not included the html 4.01 strict doctype.
Now I've been to another website where they claim that there is infact another way to embed content within another document. Unfortunately it requires that you use two different methods (one for IE and one for all other browsers); IE uses an ActiveX Object, and the rest of the browsers use an <object> tag. Additionally the site seems to be refering to an xhtml doctype and not the html 4.01 strict doctype that I am referring to myself.
Well, there is no "onload" (lower case) attribute for iframe so forget that. I would have thought 'object' would work in IE8 at least.
W3C has another doctype decalration for documents with frames or iFrames.
Check out W3C's Introduction to frames
The declaration is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
For supported iframe attributes, see Inline frames: the IFRAME element