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 trialDaniel Holmes
2,765 Pointshelp
what am I doing wrong
4 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Daniel.
Could you post some code for us so we can see which part of the code challenge you're struggling with?
I'm taking a punt that it's the first part in which case you just need the html5 document type definition (DTD) which is as easy as
<!doctype html>
Daniel Holmes
2,765 Points<!DOCTYPE html> <html> <head><title>coding</title></head> <body></body> <h1></h1> </html>
Daniel Holmes
2,765 Points<!DOCTYPE html> <html> <head> <meta charset = "utf- 8"> <title> D Holmes </title> </head> <body></body> <h1></h1> </html>
I thought you get the code here it is
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Daniel,
My fault. :) I didn't realise what happened first time when you tried to post your code. Before I tell you where I think you're going wrong I encourage you to learn forum Markdown Code as this is how we post code to the forums.
You can also add it automatically when you're asking for help on a particular code challenge.
To see examples of Forum Markdown click the "Markdown Cheatsheet" link.
Anyway I think where you're going wrong is with your header element. It needs to go inside the body element. Yours is below as a sibling element, that is in the same level in the document "tree".
So try it like this
<!DOCTYPE html>
<html>
<head> <meta charset = "utf- 8"> <title> D Holmes </title> </head>
<body>
<h1></h1>
</body>
</html>