title: Embedding Content (iframes) with an HTML 4.01 doctype?
body: <p>I have some existing code that I have been tasked with upgrading to a valid doctype of HTML4.01 strict.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  </code></pre>
  
  <p>In the code I've come across an &lt;iframe&gt;, and this does not sit well with the <a href="http://validator.w3.org" rel="nofollow noreferrer">w3 validator</a>.</p>
  
  <pre><code>&lt;iframe 
        OnLoad="javascript: LoadAddAttachmentiFrame('Stock-Attachment-135','/cgi-bin/Xebra?UploadAttachment&amp;amp;s=gnfhcjt7&amp;amp;itemIdentifier=Stock-Attachment-135','gnfhcjt7');" 
        src="/xebrajustadiv.htm" 
        frameborder=0 
        id="Stock-Attachment-135-AttachFrame" 
        name="Stock-Attachment-135-AttachFrame" 
        width="525" 
        height="10"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>The <a href="http://validator.w3.org" rel="nofollow noreferrer">w3 validator</a> even seems to claim that &lt;iframe&gt; is not included the html 4.01 strict doctype.  </p>
  
  <p>Now I've been to <a href="http://www.velocityreviews.com/forums/t658990-iframe-validation-issues.html" rel="nofollow noreferrer">another website</a> 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 &lt;object&gt; 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.</p>
  
  <p>I don't know what the correct way to embed this content into my html 4.01 strict doctype would be, and additionally I'm concerned that the Javascript that is meant to be called in the onload attribute of the &lt;iframe&gt; tag will not work with the methods suggested in <a href="http://www.velocityreviews.com/forums/t658990-iframe-validation-issues.html" rel="nofollow noreferrer">the website</a>; using the ActiveX control for IE and &lt;object&gt; tag for all other browsers.</p>
  
  <blockquote>
    <p><strong>Note:</strong> This question is really better suited to <a href="http://www.doctype.com/" rel="nofollow noreferrer">doctype</a> and thus I have <a href="http://doctype.com/embedding-content-iframes-html-401-doctype" rel="nofollow noreferrer">posted it there</a>.  Unfortunately, it seems that I am more likely to get an answer from someone on stackoverflow, so I have posted it here with a link to the question on <a href="http://doctype.com/embedding-content-iframes-html-401-doctype" rel="nofollow noreferrer">doctype</a>.</p>
  </blockquote>