Ask coding questions

← Back to all posts
HTML error
Benjo989 (2)

uh guys i don't know why my games.html page doesn't work can you guys figure out this problem? (I've tried to do that with <a href="/games.html"> Download the App </a> but it still doesn't work)
please check 309 in my index.html file or try to run it and click the Download the App button.
thank you!

Answered by Coder100 (18903) [earned 5 cycles]
View Answer
Coder100 (18903)

you never served games.html in your express.
So add something like this:

app.get("/games.html", (_, res) => {
  res.sendFile(__dirname + "/games.html");