Using JavaScript is an easy way to hide of show HTML elements. Essentially, this allows you to show text when necessary, add text that you have in your HTML document but did not originally show, or remove elements.
For your homework this week, I would suggest you write much of your story in the HTML document, then use JavaScript to selectively show/hide portions as users choose their paths.