Creating stimulator games for a project

Hi, I’m a student trying to create those walk-through games where you need to choose between given options and then it leads you to different situations. How do I develop this kind of browser games? Thanks in advance