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 trialIvelina Ventsislavova Stoilova
4,985 PointsFinally, place the h2 and articles inside an element that represents the main content of the <body> of the page.
HTML Basics- Task 3 of 3 is my current coding problem: Finally, place the h2 and articles inside an element that represents the main content of the of the page.
This is my code- i tried with main and section before that http://cloud.supportally.com/2d2w3835451B
I get the Bummer message at : Task 1 is no longer passing, even though it gave me Well done before that
Thanks for the help!
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Blog</title>
</head>
<body>
<header>
<h1>My Web Design & Development Blog!</h1>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Recent Work</a></li>
</ul>
</nav>
</header>
<main>
<h2>The Main Articles</h2>
<article>
<h3>My Favorite HTML Courses</h3>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
</article>
</main>
<main>
<article>
<h3>10 Handy CSS Features</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>
<h3><aside>Follow Me on Social Media:</aside></h3>
</article>
</main>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">LinkedIn</a></li>
</ul>
<footer>
<article>
<p>© 2017 My Blog</p>
</article>
</footer>
</body>
</html>
3 Answers
Shay Paustovsky
969 Points<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Blog</title>
</head>
<body>
<header>
<h1>My Web Design & Development Blog!</h1>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Recent Work</a></li>
</ul>
</nav>
</header>
<main>
<h2>The Main Articles</h2>
<article>
<h3>My Favorite HTML Courses</h3>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
</article>
<article>
<h3>10 Handy CSS Features</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>
</article>
</main>
<aside>
<h3>Follow Me on Social Media:</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">LinkedIn</a></li>
</ul>
</aside>
<footer>
<p>© 2017 My Blog</p>
</footer>
</body>
</html>
This is my source code, you can compare it to yours
Happy Coding
Shay Paustovsky
969 PointsHi There,
You're doing an amazing job but you have a few errors;
First you're grouping each article inside it's own 'main' tag, thus you have 3 'main' tags when the 3rd doesn't close.
<main></main> - describes unique & main content on the page that would not be repeated anywhere else.
<main>
<h2></h2>
<!-- seperator -->
<h3></h3>
<p></p>
<h3></h3>
<p></p>
</main>
hopefully this has helped you.
Happy Coding
;) Shay
Ivelina Ventsislavova Stoilova
4,985 PointsThanks, but I am still stuck at it....
Ivelina Ventsislavova Stoilova
4,985 PointsNow it's working, but I didnt realize I will have to change step 1 and 2 in order to have 3 working correctly.
Thanks a lot!