An example for a choose your own adventure game, written in HTML, CSS and Javascript
To start the game open the index.html file and then choose an appropriate path by clicking the buttons. To create your own, download the template.html page and styles.css files and modify to your needs.
Have fun!