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 trialLarry Allison
315 PointsNeed Help On this please
How to Make a website
Larry Allison
315 PointsIt wants me to place a media link/content
2 Answers
Ben Ragsdale
14,187 PointsYou have to use two img tags here, with the src and alt attributes. I could show you the correct answer but I think it would be better for you to figure it out, since this is something you'll have to do over and over again in the front-end dev workplace.
Make sure to use the correct file path in the source attribute and don't forget the alt attribute.
Larry Allison
315 Points<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nick Pettit</title> </head> <body> <header> <a href="index.html"> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> <li> <img src="img/numbers-02.jpg" alt=""> </li> <li> <img src="img/numbers-06.jpg" alt=""> </li> </ul> </section> <footer> <p>© 2013 Nick Pettit.</p> </footer> </body> </html>
Can you show me please
Larry Allison
315 Pointsyou still there
Ben Ragsdale
14,187 PointsLook at the code you already have.
You have three <img> elements with src="" and alt="" attributes in the <section> part of the page:
<section>
<ul>
<li>
<img src="img/numbers-01.jpg" alt="">
</li>
<li>
<img src="img/numbers-02.jpg" alt="">
</li>
<li>
<img src="img/numbers-06.jpg" alt="">
</li>
</ul>
</section>
The code challenge is asking you to put two more <img> elements in the <footer> section of your page. You need to put those two <img> elements in the footer with the correct paths in src="" attribute and an alternative description of the img in the alt="" attribute.
I'll stay with you until you get it, but I think it's best if you do this without me giving you the answer.
Larry Allison
315 Pointsthanks
Ben Ragsdale
14,187 PointsBen Ragsdale
14,187 PointsWhat is the question?