+ 2
How do I put a YouTube video in the HTML document using the <iframe> tag and set the X-frame-option to make the video play
3 Answers
+ 1
Copy the video link from the browser
then paste it to your code.
then
replace the "watch?v=" with the "embed".
example of how it should look like:
<video controls>
<source src="https://www.youtube.com/embed/Dlh5uDejkHw" type="video/mp4">
<source src="https://www.youtube.com/embed/Dlh5uDejkHw" type="video/ogg">
</video>
Thats my trick,
If it won't work tell me
+ 2
both the <iframe> and the <video> tags work when instilling a video
+ 1
By using HTML5 features, that is by using VIDEO element,,,