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

Rafael Sampaio
3,244 PointsFalied to embed a youtube video.
Hi, I was following the html deep dive and couldn't embed the youtube video as shown in the Embedded Elements video. I even copied the code form the project files, wich by the way worked perfectly. Can anyone help me?
3 Answers

James Barnett
39,199 PointsProtocol-less URLs don't work without a web server, so in that case just add http: in front of the URL. Also Youtube videos don't seem to be able to be embed in codepen or similar online code playgrounds.

Travis Carney
Front End Web Development Techdegree Graduate 17,797 PointsThanks adding https: in front of both URLs in the embed code fixed my problem.

Rafael Sampaio
3,244 PointsHere it is: http://codepen.io/anon/pen/xkKid

Rafael Sampaio
3,244 PointsThat really solved the issue. I guess I just assumed the code would run as it was. Thank you for your help.
Alex Hedley
16,381 PointsAlex Hedley
16,381 PointsCould you add the code you've tried, maybe make a CodePen?