title: Append YouTube videos to span
body: <p>I have tried to embed videos in a span in two different ways but the video is not displayed on the span.</p>
  
  <p>First way:</p>
  
  <pre><code>my_span = $('&lt;span&gt;').attr(word.html).addClass('v'+ weight + " " + custom_class);
                     my_span.append('&lt;embed src="'+ link +'" type="application/x-shockwave-flash"&gt; &lt;/embed&gt;');
  </code></pre>
  
  <p>Second way: </p>
  
  <pre><code>my_span = $('&lt;span&gt;').attr(word.html).addClass('v'+ weight + " " + custom_class);
                 my_span.append('&lt;iframe src="'+ link +'" "&gt;&lt;/iframe&gt;');
  </code></pre>
  
  <p>The css class is like this:</p>
  
  <pre><code>span.v2 {
    display:block;  
    height:30px;
    width:30px;
  }
  </code></pre>
  
  <p>Can you please guide me to the solution? Thank you very much</p>