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 Basics Structuring Your Content Sectioning Content with <article>, <nav> and <aside>

Kaya loves watermelon
Kaya loves watermelon
10,388 Points

would someone explain what Iā€™m doing wrong?

<!DOCTYPE html> <html> <head> <link href="styles.css" rel="stylesheet"> <title>My Portfolio</title> </head> <body> <ul> <li><a href="#">About</a></li> <li><a href="#">Work</a></li> <li><a href="#">Contact</a></li>
</ul> <h1>My Web Design & Development Portfolio!</h1> <p>A site featuring my latest work.</p>

<div class="introductory-content">
    <ul>
        <li>Intro Item 1</li>
        <li>Intro Item 2</li>
        <li>Intro Item 3</li>
    </ul>
    <h1>Welcome to Our Website</h1>
    <p>This is the introductory paragraph that provides information about your website.</p>
</div>

<p>&copy; 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>

</body> </html>

2 Answers

Steven Parker
Steven Parker
229,744 Points

Assuming you're doing this code challenge that follows the video you linked this question to, it doesn't look like you've made any changes yet. But the very first task is to "Place the ul, h1 and p elements at the top of the page inside an element that represents a group of introductory content."

So you'll need to enclose those 3 items inside a new semantic element, specifically the one "that represents a group of introductory content" which is the description of the <header> element.

And when posting code, always use Markdown formatting to preserve the code's appearance and retain special symbols.

Kaya loves watermelon
Kaya loves watermelon
10,388 Points

i know the task but when i put correct answer it gives me "bummer"

<div class="introductory-content"> <ul> <li>Intro Item 1</li> <li>Intro Item 2</li> <li>Intro Item 3</li> </ul> <h1>Welcome to Our Website</h1> <p>This is the introductory paragraph that provides information about your website.</p> </div>

Steven Parker
Steven Parker
229,744 Points

That encloses the group, but not with the correct element.

As I said in my answer, the semantic element "that represents a group of introductory content" is the <header> element (and not <div class="introductory-content">).