Use video tag can not play

I’ve add the video (from youtube link) but it can not play. Pls check and give me the reason.
and this is my code"

A mordern lighting design

link on codeopen. Thanks
https://codepen.io/thanhluuks/pen/PoGNgXM

1 Like

Use this link as src

https://youtu.be/ABThiLIRg7E

Still can not working

If you want to add a video from youtube, right-click on the video, then “copy embed code”, then paste it where you want in your html.
Like that :

<figure>
        <iframe width="853" height="480" src="https://www.youtube.com/embed/ABThiLIRg7E" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        <figcaption>A mordern lighting design</figcaption>
      </figure>

The embed code is <iframe width="853" height="480" src="https://www.youtube.com/embed/ABThiLIRg7E" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

1 Like

Thanks. So for youtube video, video tag can not use for HTML and we must use iframe tag instead of? this I first time I see this tag.

just copy the the “embed code” and paste it that all, the video tag i think is when you have direct url to the video

ok. Thank you so much.