title: How to show html file with css in local server
body: <p>When I run my HTML file on a local server written in node.js, the CSS file that I linked in my HMTL file does not work.</p>
  <p>my javascript code</p>
  <pre><code>const http=require('http');
  const fs=require('fs');
  http.createServer(function(req,res){
      fs.readFile(&quot;index.html&quot;,(error,data)=&gt;{
          res.writeHead(200,{'Content-Type':'text/html'});
          res.write(data);
          return res.end();
      })
  
  }).listen(8080);
  </code></pre>
  <p>my HTML file</p>
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;link rel=&quot;stylesheet&quot; type=text/css href=&quot;./css/desktop.css&quot;&gt;
      &lt;title&gt;CODESTER-TrackYourProgress&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  ...
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>my CSS file is in folder css, and name is called <code>desktop.css</code>.</p>