title: How to make HTML embed code from YouTube W3C compliant?
body: <p>Here is an example of the embed code from a Youtube Video:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
     &lt;title&gt;I AM YOUR DOCUMENT TITLE REPLACE ME&lt;/title&gt;
     &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
     &lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
     &lt;div&gt;
  
  &lt;object width="1280" height="750"&gt;
      &lt;param name="movie" value="https://www.youtube-nocookie.com/v/WZ-1lfammjk?fs=1&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;
      &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
      &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
      &lt;embed src="https://www.youtube-nocookie.com/v/WZ-1lfammjk?fs=1&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1280" height="750"&gt;&lt;/embed&gt;
  &lt;/object&gt;
  
     &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I made this go through the W3C HTML 4.01 Strict validator, and got the following errors:</p>
  
  <pre><code>Line 13, Column 115: end tag for element "PARAM" which is not open
  
  Line 14, Column 55: end tag for element "PARAM" which is not open
  
  Line 15, Column 59: end tag for element "PARAM" which is not open
  
  Line 16, Column 16: there is no attribute "SRC"
  
  Line 16, Column 98: there is no attribute "TYPE"
  
  Line 16, Column 148: there is no attribute "ALLOWSCRIPTACCESS"
  
  Line 16, Column 173: there is no attribute "ALLOWFULLSCREEN"
  
  Line 16, Column 186: there is no attribute "WIDTH"
  
  Line 16, Column 200: there is no attribute "HEIGHT"
  
  Line 16, Column 205: element "EMBED" undefined
  </code></pre>
  
  <p>What can I do to fix this? I have limited experience, so detailed answers would be great. Thanks!</p>