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
Jasmine Stepp
1,013 PointsHTML 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
Samuel Glister
12,471 PointsHi 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
Jasmine Stepp
1,013 PointsIll try it and let you know how it works. Thanks for the reply!