Node.js server how to send an html file code example Example: send html file express res.sendFile(path.join(__dirname + '/index.html'));