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


Embeded tags

Embedded Elements Websites > HTML > Objects > Embedded Elements

I took a video from youtube with the old embeded tag like the video said i should but when i paste into the text editor the video doesn't show up at all. i refreshed and edited my nesting still nothing showing up.

please help a noob out

thanks! :D

4 Answers

James Barnett
James Barnett
39,199 Points

Protocol-less URLs don't work without a web server, so in that case just add http: in front of the URL.

The main caveat to keep in mind when using the protocol-less reference is that it will fail on pages loaded via file:/// (i.e. HTML pages you load directly from disk to your browser). So, do be sure to include the http: protocol in the URL if you happen to be developing without a web server at all, but don’t worry about omitting it otherwise.

source: http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/

Thank you very much, I also had this problem but thanks to you it now works.

Juliana Minium
Juliana Minium
Front End Web Development Techdegree Student 10,643 Points

I had the same problem. Look at the URL in the <param name="movie"... & <embed src=//www.youtube.com.... Notice there is no HTTP: If you add HTTP: in front of the // it will work.

this is my code

<!DOCTYPE html>
<html lang="eng">
  <meta charset="utf-8">

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

oh awesome thank you !