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 trialMaryanne Gray
Courses Plus Student 290 PointsHead and Body tags
can someone tell me what is wrong with this?
<!DOCTYPE html>
<html></html>
<HEAD>
<meta> charset="utf-8">
<title>mab designer</title>
</HEAD>
<body>
</body>
5 Answers
Simon Truong
2,179 PointsHello Maryanne,
Your code is not well designed. It should look something like this :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mab Designer</title>
</head>
<body>
...
</body>
</html>
Peace,
Nam
David Trejo
19,914 PointsYour html closing tag </html> has to come after the body closing tag </body>.
Kyle Meyer
5,459 PointsHowdy Maryanne Gray,
The <html>
tag needs to wrap all the content on the page, and the <head>
tag should be lowercase. It should look like:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>mab designer</title>
</head>
<body>
<!-- :zap: INSERT SCIENCE HERE :zap: -->
</body>
</html>
Unsubscribed User
6,144 PointsYour <html>
tag should embrace all the other tags except the doctype.
Also, you closed the meta tag before the end of it :
<meta charset="utf-8">
Wayne Priestley
19,579 PointsHi Maryanne,
Just a simple typo, you have closed your <meta>
tag too early and move your html
to the bottom and things will be tiketibooβ¦
:)
Kyle Meyer
5,459 PointsKyle Meyer
5,459 PointsShoot, you beat me to it! :-)
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsBeat me too lol