I can not embed a YouTube video to my site

1

I'm inserting the following iframe code to embed a YouTube video, but the code does not generate the video on the site, what am I missing?

I took that part of the code in a code I saw and just changed it.

Only one gray border appears, but the video is not available on the site.

code:

<iframe width="560" height="315" src="https://www.youtube.com/watch?v=dvPo7JUAP8k"> </iframe>
    
asked by anonymous 25.10.2017 / 12:54

2 answers

3

The value of the src attribute is wrong, because the link that is is the video link, the incorporation link is different to incorporate it, you must enter the desired video and click on share then incorporate the link link and the html code is already generated

    
25.10.2017 / 12:55
3

The correct format of src is as below:

  

link + video code

In your case, it would look like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/dvPo7JUAP8k"> </iframe>
    
25.10.2017 / 13:07