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

Youtube embedded code

I copy the embedded code and my page is blank. Here is my code:

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page3</title> </head>

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

</html>

Tom Mertz
Tom Mertz
15,254 Points

Hey Randy,

Could you wrap your code using the code markdown? You can find it under the Markdown Cheatsheet to the bottom right of the text input. Then we can see it and help you out :)

7 Answers

I am using Notepad++ is it on there. Now it is saying Shockwave crashed.

Dennis Castillo
Dennis Castillo
16,018 Points

Just curious, you're using "Object"? to embed the youtube video?

I copied the embedded code from the same video that is on the turorial:

<object width="420" height="315"><param name="movie" value="//www.youtube.com/v/_OBlgSz8sSM?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/_OBlgSz8sSM?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Dennis Castillo
Dennis Castillo
16,018 Points

It's seems very hard to figure it out without showing your code, as of now all I can think of is: you're using "Object" and you just copy the embedded code and your Shockwave did crush...

it is your web browser has like plugin to play videos on the web? specially for some other web browser. just curious...

I rebooted and shockwave is working on other apps, but this will not show anything but a blank page.

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page3</title> </head>

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

</body>

</html>

Dennis Castillo
Dennis Castillo
16,018 Points

Well I check it again about the Embedding elements. try this don't copy what is in the tutorial videos... Visit youtube and goto "share" - "embed" check the "Use old embed code" it will appear the embedding code in object, copy it and try it...

This is might help you to start it again... Good Luck and God Bless :)

Dennis, That is what I did.