I am running a Node.js Express server on localhost listening in port 3000. All my files are in "loginapp" folder.
This is what I do in node.js to open the index:
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html')
})
To reach account.htm, I use
<a id = "anchor" href = "file:///C:/Users/alain.daccache/loginapp/account.htm"> Create an Account </a>
To read the background image, I use
background-image: url("blueocean.jpg");
When I right click -> open file, I can see the codes (no file not found error). However, when I am in localhost:3000 on my browser, I don't have my background, and when I click on the anchor, nothing happens. Still, I do get the other information from the html file. What is wrong?