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 Objects Embedded Elements

Embedded YouTube link not showing up on my webpage?

'''html <! doctype.html> <html lang="en"> <head> <meta charset="utf-8"> <title>Linking Websites</title> </head>


<p>Main Page</p>

<a href="Second Page.html">Second Page</a>

<a href="http://www.atpworldtour.com/">ATP World Tour</a>

<p>Here is the ATP Logo</p> <img src="ATP Logo.png" alt="ATP World Tour Logo" title="ATP World Tour Logo"> <p>More to Follow...</p>

<object width="640" height="360"> <param name="movie" value="//www.youtube.com/v/CsGYh8AacgY?version=3&amp;hl=en_US"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="//www.youtube.com/v/CsGYh8AacgY?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed> </object>

</body> </html> '''

2 Answers

Not really sure what you mean, but i use this when i embed an youtube link on my site.

<iframe src="http://www.youtube.com/embed/yourmovielink" frameborder="0" width="853" height="480"></iframe>

Just place it inside an div, you can also find the embed code on youtube under embed for your video.

Thank you! I am not sure why my code did not show up in my post with the Markdown... But thank you for the help. The problem was actually the embedded code link on youtube was missing a letter I did not see at first and was unable to find the file. Sorry, I am a beginner...