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 trialSayudha Lukita
Full Stack JavaScript Techdegree Student 528 PointsWhat does it mean by placing a content between header and footer?
What does it mean by placing a content between header and footer? I don't really get it, since i've put article, nav, and aside tags inside header and footer tag
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<header>
<article>
<title>My Portfolio</title>
</article>
</header>
</head>
<body>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<section>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</section>
<article>
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
</article>
<aside>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
</aside>
<footer>
<article>
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</article>
</footer>
</body>
</html>
2 Answers
Katie Wood
19,141 PointsHi there,
On that step, the challenge is asking for you to place everything between the </header> and <footer> in a single tag. The key here is where it talks about grouping related content - it wants all of the elements between the header and footer in a <section> tag. I believe there are some unneeded tags here - article tags, for example, are really just for self-contained content, like a blog post or news article. At this point in the challenge, the html should look something like:
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</header>
<section>
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
</section>
<footer>
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</footer>
</body>
</html>
You actually don't need the <nav> tags yet either, but I left them in because the next question may or may not involve something... :)
Frans de Haan
5,193 PointsFirst question header around the elements. Second question footer around the elements. Third question section around the content between header and footer. Fourth question nav around the ul in the header.