Linked video won't play
I am extremely new to coding. I'm teaching myself HTML. I just started my first project on here to practice, and I am trying to add a YouTube video. It appears on the page, but it won't play. I used the video tag, added the URL to the src attribute, and have a closing tag. What am I doing wrong? Halp!
video tags have a (imo) misleading syntax, read more about it here
<video controls width="250"> <source src="..." type="..."> ... <!-- Fallback text --> </video>
But this is a youtube video, and they have even more strange syntax.
So on that specific youtube video:
And click copy on that bottom embed, so now your HTML code is:
<iframe width="560" height="315" src="https://www.youtube.com/embed/lk6iJNSv-vY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>