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