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 trialyannis sousanis
7,199 PointsI think its ok , whats wrong?
I think its ok , whats wrong?
<!doctype html>
<html>
<header>
</header>
<body>
</body>
</html>
2 Answers
Kevin Beall
13,828 Points<header></header> is not one of the tags that need to be in all html documents. <header> would be within your <body> tags.
All you need to do is change <header> to <head>.
Shayne Laufenberg
4,213 PointsI wouldn't say anything is actually wrong with your code here, its just a matter of what you want to do. In this case, I believe you are meaning to use the "head" tag in an html document. Remember that the html, head, and body tags are defined in every html document.
Head generally contains things such as your webpage title as seen below, or a link to a style sheet which is not displayed to user but is interpreted by our browser.
Body our website contents, generally used for displaying the visual contents of our webpage to the user.
header, and footer tags gave you a sneak peek at using some features in html5 that provide organization for our documents but are by no means required on a webpage you will learn in future videos/challenges there are ways to organize your div's in the same way without using those tags.
For now I'd just focus on what i call the skeleton of html which is the exact code of the solution to this Challenge as seen below. Hope this helped :)
Solution:
<!doctype html>
<html>
<head>
<title>Webpage Title</title>
</head>
<body>
</body>
</html>
Richard Melrose
4,201 PointsRichard Melrose
4,201 PointsTry adding a language in the HTML tag eg: <html lang="en"> at the top for English etc