For a website I am designing for an assignment about kids films and I thought I would put an iframe in to show the trailer from a YouTube video. This is the code I used (just with a test video);
<iframe width="560" height="315" src="//www.youtube.com/embed/xxMcViTf7KU" frameborder="0" allowfullscreen>This is the test iframe</iframe>
The result is the page begins to load, then a box comes up saying 'file or directory not found'. As far as I am aware, the code is all correct. I don't understand what's wrong.
Any help would be greatly appreciated, thank you!
Don't forget the "http://" before your YouTube link. That's working fine:
You can try
<embed-video></embed-video>
like this:Add this into your index.html-
Then use in your html like this:
see in the snapshot: