Insert a youtube video into an html page

Asked

Viewed 997 times

1

I would like to insert a video into a web page, but I can’t. What is the problem it contains in this code?

<object width="425" height="344">

    <param name="movie" value="https://www.youtube.com/watch?v=JBjjnqG0BP8"></param>
    <param name="allowFullScreen" value="true"></param>
<!-- copiado -->
  <embed src="https://www.youtube.com/watch?v=JBjjnqG0BP8" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
  </embed>
</object>

1 answer

0


With this code you can insert a video in your HTML page:

<iframe width="X" height="Y" src=http://www.enderecodovideo.com frameborder="0" allowfullscreen></iframe>

You need to get the EMBED address on Youtube http://imageshack.com/a/img537/6295/refUy4.png Where is X and Y you fill with the proper size.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.