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 trialharsha praneeth
5,449 Pointsunable to embed code
unable to upload other videos on youtube to my website other than the examples given in the video lesson. This is what i typed, please tell me the corrections
<!doctype html>
<html lang="en">
<head>
<title> first page </title>
<meta charset="utf-8">
</head>
<body>
<object width="960" height="720">
<param name="movie" value="//www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="//www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
<a href="another-page.html"> My Link</a>
<p> this is the first page </p>
</body>
</html>
harsha praneeth
5,449 Pointsthis is what i typed, plz make the changes u wish to <!doctype html> <html lang="en"> <head> <title> first page </title> <meta charset="utf-8"> </head>
<body> <object width="960" height="720"> <param name="movie"value="http://www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="//www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed> </object> <a href="another-page.html"> My Link</a> <p> this is the first page </p>
</body> </html>
harsha praneeth
5,449 Pointsdid u get my code, plz reply if u got my question
5 Answers
harsha praneeth
5,449 Pointsthis is what i kept
<!doctype html>
<html lang="en">
<head>
<title> first page </title>
<meta charset="utf-8">
</head>
<body>
<object width="960" height="720">
<param name="movie"value="http://www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="//www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
<a href="another-page.html"> My Link</a>
<p> this is the first page </p>
</body>
</html>
Andrew McCormick
17,730 Pointsyou only changed it in one place. You have to change it again in the embed tag
Andrew McCormick
17,730 Points <embed src="//www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed>
should be
<embed src="http://www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed>
Andrew McCormick
17,730 Pointshmm.. what you typed seems to work for me. Screenshot:
harsha praneeth
5,449 Pointsin what browser is it
Andrew McCormick
17,730 Pointsok. I take that back it ran in Workspaces on here, but not when I put into an html file.
modify where you have (both places): value="//www.youtube.com ...
to value="http://www.youtube.com ...
harsha praneeth
5,449 Pointsi did not get it even i replaced with http://www.youtube.com, plz let me know. I am really struck here
harsha praneeth
5,449 Pointsi did not get it even if i place http://www.youtube.com
Andrew McCormick
17,730 Pointscan you post your code after those changes. (remember to put three tildes -or backticks- ( ``` ) on the line before and after your code to post as code (I edited your original post for correct formatting).
harsha praneeth
5,449 Points i typed it as
<param name="movie"value="http://www.youtube.com/v/gSPAargq4LI?hl=en_US&version=3"></param>
i got it man thank you very much, sorry i was typing at the top, now i typed at embed
harsha praneeth
5,449 Pointsharsha praneeth
5,449 Pointshttp://www.youtube.com/watch?v=gSPAargq4LI
this is the link of the video which i have tried