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
Viviane Povoas-Landry
1,001 PointsHelp me. "head" on my text doesn't work. Why?
So I'm on the beggining of the course and I followed exactly what the instructions show but when I check my code it does not show the head text on my page. Why is that? Please someone help me, I can't continue the exercices because this part doesn't work. My code is identical of the video and yet it only shows me the text of of the body and not the text of the head.
Unfortunally I tried to paste my code here to show how it's laid out and it doesn't show and I can't attach the doc... Can anyone help me?
2 Answers
Elliott Frazier
Courses Plus Student 9,647 Pointsto show your code you need to indent it four spaces(or one tab) and also make two line breaks before and after your block of code
Stone Preston
42,016 Pointsthe text in the head will not show in the window.
<head><title>This is a title that is visible on the tab of the browser, but not the page itself</title> </head>
<body>This text will show in the window</body>
which means there is something wrong with your code itself. You can indent your code 4 spaces to format it as code when you post it as a forum comment.
Viviane Povoas-Landry
1,001 PointsThanks a lot Stone Preston, I followed your suggestion and it works! :)
Elliott Frazier
Courses Plus Student 9,647 PointsElliott Frazier
Courses Plus Student 9,647 Pointsyou can also show your code using code pen
Viviane Povoas-Landry
1,001 PointsViviane Povoas-Landry
1,001 PointsAwesome!!! I had no idea about the space. I wonder why isn't that said in the video.
Thank you Elliot!
Shawn Isaacs
485 PointsShawn Isaacs
485 PointsAgree, "I had no idea about the space. I wonder why isn't that said in the video."
Im a newbie. I thought I was going to have to go ahead and buy my web server but code pen looks great.
Thanks Ellioit