I have a node js program which does some stuff and outputs an html table via res.write(); The page is not connected to an html page but is just me viewing the localhost port. Since I don’t have a connected html page I was wondering where I need to link my stylesheet.
function func(){
app.get('/', function (reqs, resp) {
resp.writeHead(200, {'Content-Type': 'text/html'});
resp.write("<table></table>");
resp.end();
});
}
var server = app.listen(8081, function () {
func();
});
This is the relevant part of my code, where and how would I add the stylesheet?