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 Video and Audio Media Basics The Video Element

Question (Very Important!)

[First Question]:

is there any thing different or wrong with this URL? I will explain it to you I got an URL from You tube then i placed in the video element then i want to preview in the work space then i wanted to load the video then it doesn't load then i got the URL in the Teachers notes then i placed it in the work space the i reload the page then the video work Why?

Jack Spangenberg
Jack Spangenberg
643 Points

No, what does your HTML look like. I need what is in the file.

here what is in the file ----->

<video control> <source src=" https://www.youtube.com/watch?v=E8UnvTe1b6E"> </video>

1 Answer

Jack Spangenberg
Jack Spangenberg
643 Points

If you want to play a youtube video on your website, you can use this page on W3 to help you. Try this code:

<iframe width="420" height="345" src="https://www.youtube.com/embed/[INSERT YOUTUBE EMBED ID]">
</iframe>

You can find out how to get your embed ID from here