krowe
5
Q:

how to add a youtube video in html


<iframe width="420" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY">

</iframe>
 
10
<!-- You can add lots more fuetures than this by the way...
- Find a YouTube video
- Set width and height
- Copy the embeded URL into the src value

But this is how to add a YouTube video:
-->

<body>
<iframe width="420" height="345" 
src="https://www.youtube.com/embed/tgbNymZ7vqY" >
</iframe>
</body>
1
<!-- You can add lots more fuetures than this by the way...
- Find a YouTube video
- set width and height
- copy the embeded URL into the src value
 -->

<body>
<iframe width="420" height="345" 
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
</body>
1
<!DOCTYPE html>
<html>
<body>
<iframe width="420" height="345" 
src="https://https://www.youtube.com/watch?v=dQw4w9WgXcQ">
</iframe>
</body>
</html>
1
<iframe width="560" height="315" src="https://www.youtube.com/embed/thatthingonvideourl" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
1

New to Communities?

Join the community