<!DOCTYPE html>
<html>
<head>
<title>贪吃蛇游戏</title>
<style>
#gameBoard {
position: relative;
width: 400px;
height: 400px;
border: 1px solid black;
}
.snake {
position: absolute;
width: 20px;
height: 20px;
background-color: green;
}
.food {
position: absolute;
width: 20px;
height: 20px;
background-color: red;
}
</style>
</head>
<body>
<div id="gameBoard"></div>
<script src="snake.js"></script>
</body>
</html>