Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I embed a Vimeo video in HTML?

Tags:

html

embed

vimeo

In HTML, you use the <iframe src="https://youtube.com/embed/videoId> element to embed a YouTube video. However, how am I embed Vimeo videos using the <iframe> element?


1 Answers

If you are signed in on Vimeo, an go to your video settings, there should be an menu "Embed". Click this item and you will get various embedding options.

At the right side of the window (below your profile icon) there will be a button Embed code. Clicking this will give you the Embed code. Here is an example it generated for me. I removed my video number though.

<iframe src="https://player.vimeo.com/video/**yourvideonumberhere**" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

And of course, embedding should be allowed for the video in the settings.

like image 136
Kokosbrood Avatar answered Dec 31 '25 11:12

Kokosbrood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!