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

General Discussion

Lost in 2nd Challenge

Type a Doc Type <DOCTYPE> Then It says Type HTML tag that will show the root I typed exactly what I put on my workspace and it match what the insturctor showed <html> ------ Now - It keeps saying I did wrong, so can someone tell me why I am wrong ????

13 Answers

Can you post a sample of what you entered? An HTML doctype should look like:

<!DOCTYPE html> and should be the very first line in your html document. The next line should be your opening html tag.

Todd My ignorance is showing !!! I have <!DOCTYPE html> <html> I do not know how to get you a picture, but this IS what I typed !

Do you have the document root after the doctype declaration? I think it's asking for the opening and closing html tags. I'm having trouble formatting the code...

[html] [/html] but with the correct greater than/less than characters.

<html> Do I need to enter it twice ??? the instructor does not show that ??

The second one is the closing tag. Notice the "/" in front.


OK !, I missed something, will have to go back a few pages !! Now here is an even dumber question :) How do I abchor my worksheet, so I do not have to go back and relauch every 30 seconds ????

That one I'm not sure of. My workspace opens in a separate window, that I drag to a 2nd monitor.

ah, HA !!! Well I will just have to fumble along, I don't have two moniters !!! I did see my mistake on the <html> -- you were right, I needed a closer. Thanks very much for your help !!! This is more complex then I thought it would be for a New "Green" student !!!!! Thanks again

Aaaahhhhh again, this time I put <head></head> and it keeps saying a need a header tag WHAT am I doing wrong ????

A header tag is another element inside the HTML document. The basic structure is:

<!DOCTYPE html>

       <!-- This is where the top section of your website would appear -->


oh, so the <head> has to be on a seperate line than the </head> ???

Not necessarily on a separate line, but most tags do require a closing tag. The spacing/lines are mostly for readability.

Best Answer !!

Well, I put the Open sign then head then the close sign <head> then the close tag open frontslash head and close sign </head> ---- <head></head> (can you see this?) so do I need a space in between or make two lines ??? Sorry to be a pest --- just very frustrated right now !!!!