Product page project

can you please tell me why the video isn’t showing?

and if anyone has any suggestion for improvement please tell me

Hi, probably the url of the video is not the correct one.
If you use the share functionality on youtube (with the embed type), the src that you receive is https://www.youtube.com/embed/9d8MALEJCHg, while in your code it is https://youtu.be/9d8MALEJCHg.
I also suggest using the html video tag rather than iframes, unless you have a specific need for it.
Video tags have great support on all modern browsers.
You can read more about it here: <video>: The Video Embed element - HTML: HyperText Markup Language | MDN

thanks for the quick reply . it worked.
i’ll read the video tag article ,thanks for the tip

1 Like