Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

HTML and Videos

instead of the given images to add on the webpage, can i use a video instead and if so how would i do it?

2 Answers

Hi Jasmine,

To embed a video into your website you can do this by using a iframe tag

for example if i wanted to embed the youtube video https://www.youtube.com/watch?v=mvqdhYYUHgA

I could do so by using the iframe

<iframe width="1280" height="720" src="https://www.youtube.com/embed/mvqdhYYUHgA" frameborder="0" allowfullscreen></iframe>

Hope this helps

Ill try it and let you know how it works. Thanks for the reply!