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.
B G1,866 Points
How on earth was I supposed to know to use HTML to type the sentence?
Did I miss something in this course? I do not remember the teacher stating to use HTML to type the sentence. Also why does he actually type the opening and closing <h2> in the sentence? Couldn't you just use the words? I wouldn't have figured this out without watching the video. Unable to complete the task on my own.
Jennifer NordellTreehouse Teacher
Hi there! The last instruction of the story-making game challenge is this (in the video):
- Print the story to the browser window.
In the workspace you'll find a slightly different set of instructions with an additional clue:
- Print the resulting story to the browser using the document.write() command.
We print to the browser by using
document.write. And, of course, the browser renders HTML (among other things). You can use HTML tags but you don't have to. Any
document.write will add the strings (with or without HTML tags) to the body. Text that doesn't contain HTML tags will inherit any stylings that the
body might have. He didn't have to use the
<h2> tags, but he wanted to make it stand out a bit.
To be clear, these extra challenges are just that. They are challenges to help you practice.
Hope this helps!
Jennifer Schultz1,944 Points
The <h2> tags are just to make the font larger so it's more readable. I initially did this without any html and it came out fine but the text was tiny, so I added the h2 tags to make it larger. :)