Sure! Here's a basic example of a short 2D platformer level implemented in a single HTML file, using JavaScript and enclosed in script tags:
This basic game includes a player controlled by arrow keys on a single platform. The player can move left and right, and jump onto the platform. Whenever the player collides with the platform, they stop falling and stand on it.