Static files in Express must be inside the directory specified in your static middleware. This is usually ./public/ .
For example, in your server.js you might have something like this:
app.use( express.static( "public" ) );
Each file inside this folder will be accessible from the root URL, so this will work:
<img src="logo.jpg" />
source share