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 trialAron Grinshtein
2,285 PointsI don't understand what I am doing wrong. I have put in the proper code but it's not coming up correct:
<a href="img/number-01.jpg"> <img src="img/numbers-01.jpg" alt="">
This is my code and it tells me its wrong
<!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>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
1 Answer
Billy Bellchambers
21,689 PointsThis code challenges wants two things.
part one asks for you to make a unorder list with 3 list items inside the section tags.
<!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> <!-- unordered list starts here -->
<li></li> <!-- list items go here -->
<li></li>
<li></li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
Then to add the images specificed one per list item like so.
<!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> <!-- unordered list starts here -->
<li> <!-- list items go here -->
<img src="numbers-01.jpg"> <!-- then one img per li -->
</li>
<li>
<img src="numbers-02.jpg">
</li>
<li>
<img src="numbers-06.jpg">
</li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
Hope this helps clear up any confusion.
Happy coding
Nattapol Kamolbal
15,528 PointsNattapol Kamolbal
15,528 PointsYour code look as same as the beginning of the challenge. Maybe you paste it wrong? Can you edit your code to show the problem one?