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 trialPatrick McGee
1,094 PointsI'm adding header & footer tags between body tags but when checked it says it's wrong because need to be in body tags?
I am adding the header and footer tags but when I check my work it says they need to be between the body tags which they are.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<header></header>
<footer></footer>
</body>
</html>
Patrick McGee
1,094 PointsThe issue was that it was asking for a section tag too. I figured it out. :)
1 Answer
Philip Gales
15,193 PointsHere is the error code that popped up on task 6/6
Bummer! A section element needs to appear between the <body> and </body> tags.
Going back to the instructions, it appears they told us to add 3 things.
Add a header element, section element, and footer element.
All you need to do is add a section tag.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<header></header>
<section></section>
<footer></footer>
</body>
</html>
Patrick McGee
1,094 PointsYes I realized that when I went back to it. Thanks though!
Maarten van Wijk
16,320 PointsMaarten van Wijk
16,320 PointsWhere does it say it's wrong?
The only thing wrong is that the <title> tag can not be empty.