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

2 Answers

Are you testing it locally? If it is so then you will have to add http to first param's value attribute and embed's src attribute. Try this

<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Laksakan Webpage</title>
    </head>
    <body>

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

Hope it helps.

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Excellent, cheers. I did not know when testing locally i will be needing the http written in-front of the url. Thanks!

Because when you host it in web server web servers have the capability to recognize URL but when locally we will have explicitly mention it.