title: Uncaught SyntaxError: Unexpected token < , in NodeJs
body: <p>i am trying to render html page in NodeJS. When I refresh the browser I am getting this error</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>If I am giving the CDN path, then its not showing error.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Welcome&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Welcome&lt;/h1&gt;
      &lt;label&gt;Username:&lt;/label&gt;
      &lt;input type="text" name="uname" id="uname"&gt;&lt;br&gt;
      &lt;label&gt;First name:&lt;/label&gt;
      &lt;input type="text" name="fname" id="fname"&gt;&lt;br&gt;
      &lt;input type="submit" name="submit" id="btn"&gt;
      &lt;script type="text/javascript" src="script.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"  src="jq.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>NodeJs code - main.js</p>
  
  <pre><code>var http = require('http');
  var fs = require('fs');
  
  http.createServer(function(req,res){
  res.writeHead(200,{'Content-type':'text/html'});
  fs.readFile('index.html',function(err,data){
      if (err) {
          res.writeHead(404);
          res.write('File Not Found');
      } else {
          res.write(data);
      }
      res.end();
  });
  }).listen(8800);
  </code></pre>