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

Old embed code not working

I followed the instructions to embed the "Charlie" video from youtube, but it won't show up when I refresh my web page. Is this a browser issue? Could the code be wrong? Help please - I'm a bit out of my depth here!

3 Answers

I didn't even think to check that - can you tell I'm brand new to this? Haha. This worked - the embed text omitted the http: from each of the links, it seems to be fine now. Thank you!

There's actually a method to the madness ...

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/

Have you compared your code to the one included in the project files?

Oh, and if it helps, I'm using a 2012 MacBook Pro and Chrome. I tried it Firefox too, but it still didn't show up.