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 trial

HTML How to Make a Website HTML First Create the Content Containers

Tarek Soliman
Tarek Soliman
662 Points

doctype is showing as part of the body on the top on the name?

all file is fine, but my Doctype which should show on the title of the page is showing on the body of the page.

2 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Can you post a copy of your code? Your doctype shouldn't actually show up anywhere, it just describes what type of code you are using in your html. It should be the first thing declared in your html file before the html, title, and body tags. Your basic structure of your file should be:

<!DOCTYPE html>
<html>
  <head>
    <title></title>
  </head>
  <body></body>
</html>
Tarek Soliman
Tarek Soliman
662 Points

OMG, I just figured out what was wrong, I Misspelled the title word. i was missing the E at the end. now it works

Thank you reply anyway