how to send a html page as response in node js code example Example: send html file express res.sendFile(path.join(__dirname + '/index.html'));