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 Treehouse Club: HTML Publish a Story Write a comment in HTML

Top Of The Page

It is not clear to me where the top of the page is. When I try to type the text assigned into the space next to "index.html", which seems to be located at the top of the page, no text shows up. When I go the the first line below this area and type it before ",!Doctype html>" I get "Bummer!" when I check my work.

index.html
<!DOCTYPE html>
<html>
</html>

2 Answers

Thanks so much! I'm now going to try to get back to that page so I can try it.

francesmassie
francesmassie
10,204 Points

No problem :) Happy coding!

francesmassie
francesmassie
10,204 Points

Hi Chris, I can see how the challenge question might be confusing.

The 'index.html' is the actual HTML file's name, so you don't want to change that. It also doesn't show up anywhere on the webpage.

With regards to '<!DOCTYPE html>', you always want that to be the first thing in your html file, so that the browser knows what type of document it should expect.

The top of the page is then basically after that. I tried the challenge just know and adding the comment after the <!DOCTYPE html> and before the <html></html> worked for me. It looked like this:

<!DOCTYPE html>
<!--this application is going to tell a story-->
<html>
</html>

I hope this has helped!