Story Time with Kevin is a how to video found on YouTube explaining a possible architecture of this type of page and an example of the finished product. However, there is a problem with using this for a text adventure: there is no provision for moving objects. That is, picking an object up, carrying it to another location and dropping it.
Collosal Cave is intended to be a port of the original text adventure "Adventure" by Crowther and Woods, but is a work in progress and unfinished at the current time. Based on the above architecture, it is not yet a game, only a map allowing you to move from room to room.