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 trialPedro Azedo
433 PointsNeed the solution for this exercise please
Need the solution for this exercise please
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<article>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</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>
<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>
<p>© 2017 My Portfolio</p>
<aside>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</aside>
</body>
</html>
4 Answers
Jamie Reardon
Treehouse Project ReviewerFirst Challenge Solution:
<!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>
</header>
<article>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</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>
<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>
<p>© 2017 My Portfolio</p>
<aside>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</aside>
</body>
</html>
Use the header element to wrap around the content. Header tags are considered introductory content.
vincent batteast
51,094 PointsWhat is the question?
Pedro Azedo
433 Pointsthe question is "Place the ul, h1 and p elements at the top of the page inside an element that represents a group of introductory content." In the previous video I was taught about nav, article and aside. I tried different combinations of this tags without success.
Jamie Reardon
Treehouse Project ReviewerI gave you the answer to the first part of the challenge. I have done the HTML Basics and intro to HTML courses and learned about this.
A webpage is typically divided into sections:
- Header <header> - Used for introductory content that typically contains a title, logo, and a navigation menu.
- Main <main> - The bulk of your content what you want to share with the rest of the world.
- Footer <footer> - Generally contains copyright Information, social media links etc.
Pedro Azedo
433 PointsThank you, I finally got it. :)
I used <section> instead of <main> but it worked