Learn html, read the code for the games you like to understand what choices they made, and then write code inspired by what’s common between those games, with your own spin on it.