Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS Adding a New Web Page Test: Write and Style an Element

kunal Toolsy
kunal Toolsy
540 Points

<!DOCTYPE> <html> <head> </head> <body> </body> </html> if this is not good, then what is good ?

why this is not good

index.html
<!doctype>
<html>
  <head> </head>
  <body> </body>
</html>

Moderator redacted: Removal of profanity from the title of the question.

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I redacted your question to remove the profanity from the title of the question. Please refer to the Code of Conduct for information about the Community guidelines.

As far as your code, you forgot to declare what kind of document it is. You're studying web development, but there are other file types that are interpretable by the browser.

The first line you're looking for is:

<!DOCTYPE html>

Hope this helps! :sparkles:

Steven Parker
Steven Parker
210,933 Points

When I plug this into the challenge, it says "Bummer! Your DOCTYPE should be "html" (without quotes)."

So to make it good, add "html" to the "DOCTYPE" tag.

Also, please revise the language in this question's title to conform to the Code of Conduct.