title: How to attach a stylesheet to the output of res.write from node js?
body: <p>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.</p>
  <pre><code>function func(){
    app.get('/', function (reqs, resp) {
    resp.writeHead(200, {'Content-Type': 'text/html'});
     resp.write(&quot;&lt;table&gt;&lt;/table&gt;&quot;);
     resp.end();
    });
  }
  
  var server = app.listen(8081, function () {
     func();
  });
  </code></pre>
  <p>This is the relevant part of my code, where and how would I add the stylesheet?</p>