It needs to be an HTML, flash, java, or Unity game. Mine is HTML. You just set it in the "Kind of Project" section. Then under uploads you have to select the checkbox "This file will be played in browser."
Reading here will help too: https://itch.io/docs/creators/getting-started