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 trialMuhammed Ibrahim
Courses Plus Student 225 Pointsadding a header element section element and footer element
am not sure what's wrong, help please1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Muhammed Ibrahim | Designer</title> </head> <header> <h1>MUHAMMED</h1> <h2>Designer</h2> </header> <section>Gallary will go here.</section> <footer> <p>© 2015 Muhammed.</p> </footer> <body> </body> </html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Muhammed Ibrahim | Designer</title>
</head>
<header>
<h1>MUHAMMED</h1>
<h2>Designer</h2>
</header>
<section>Gallary will go here.</section>
<footer>
<p>© 2015 Muhammed.</p>
</footer>
<body>
</body>
</html>
2 Answers
Jarrett Young
12,635 PointsYes, you need to include the header, section and footer elements in the BODY of the document. Here is the correct code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<header></header>
<section></section>
<footer></footer>
</body>
</html>
Matt West
14,545 PointsHi Muhammed,
Check where you are putting the header
, section
and footer
elements in your markup.
Hint: The body
element is looking a little empty.
Matt