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

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

HTML - Images and embedded video are not showing

I am following the video, but the images and video are not appearing. Any tip?

Cheers

Please post your code.

Jorge Guzman
Jorge Guzman
Courses Plus Student 21,390 Points

Sure, here is the code:

<!doctype html>

<html lang = β€œen”> <head> <meta charset = "utf-8"> <title>webpage of a super papa</title> <link rel = "stylesheet" type = "text/css" href = "application.css"> <script type = "text/javascript"> alert('Hello world!'); </script> </head> <body> <p>A page</p> <a href = "index.html">Go back</a> <br> <p>Some pictures </p> <!-- These ones are not working --> <img src = "nature1.JPEG" alt = "nature1" title = "nature1"> <img src = "nature2.JPEG" alt = "nature2" title = "nature2"> <img src = "nature3.JPEG" alt = "nature3" title = "nature3"> <img src = "nature4.JPEG" alt = "nature4" title = "nature4"> <img src = "nature5.JPEG" alt = "nature5" title = "nature5"> <br> <p>Some pictures</p> <!-- This one is working, it is shown --> <img src = "IMG_6058.JPG" alt = "me" title = "Jorge GuzmΓ‘n kid"> <br> <p>Embedding a video</p> <!-- NOT WORKING, can't see the video, just do not appear --> <object width="560" height="315"><param name="movie" value="//www.youtube.com/v/2X2EP4aqXdU?version=3&amp;hl=es_MX"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/2X2EP4aqXdU?version=3&amp;hl=es_MX" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object> </body> </html>

Vince Brown
Vince Brown
16,249 Points

Jorge if your links are not showing then without seeing your code my first guess would be your file paths. If you could post all your code so we can check out everything that would help a lot more.

3 Answers

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

<!doctype html>

<html lang = β€œen”> <head> <meta charset = "utf-8"> <title>webpage of a super papa</title> <link rel = "stylesheet" type = "text/css" href = "application.css"> <script type = "text/javascript"> alert('Hello world!'); </script> </head> <body> <p>A page</p> <a href = "index.html">Go back</a> <br> <p>Some pictures </p> <!-- These ones are not working --> <img src = "nature1.JPEG" alt = "nature1" title = "nature1"> <img src = "nature2.JPEG" alt = "nature2" title = "nature2"> <img src = "nature3.JPEG" alt = "nature3" title = "nature3"> <img src = "nature4.JPEG" alt = "nature4" title = "nature4"> <img src = "nature5.JPEG" alt = "nature5" title = "nature5"> <br> <p>Some pictures</p> <!-- This one is working, it is shown --> <img src = "IMG_6058.JPG" alt = "me" title = "Jorge GuzmΓ‘n kid"> <br> <p>Embedding a video</p> <!-- NOT WORKING, can't see the video, just do not appear --> <object width="560" height="315"><param name="movie" value="//www.youtube.com/v/2X2EP4aqXdU?version=3&amp;hl=es_MX"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/2X2EP4aqXdU?version=3&amp;hl=es_MX" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object> </body> </html>

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Sorry, I am posting the entire code but it is not showed in the label.

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Sorry, I am posting the entire code but it is not showed in the label.