Sure! Here's a simple implementation of Tetris as a single HTML file using JavaScript:
You can copy and paste the above code into a new HTML file, save it with a ".html" extension, and open it in a web browser. The game should start, and you can use the arrow keys to control the tetromino shapes. The game logic, piece movement, and lines clearing are all implemented. However, as mentioned in the comments, scoring logic is left as an exercise for you to build upon if desired.