serving html files in node js using express
<p>actally i'm trying to serve a html file in the browser using node js and express. unfortunatly i can't get the correct appearence of the html file.</p>

<p>here is the code : </p>

<pre><code>var http = require('http');
var fs = require('fs');
// Chargement du fichier index.html affiché au client

var server = http.createServer(function(req, res) {
    fs.readFile('./table.html', 'utf-8', function(error, content) {

        res.writeHead(200, {"Content-Type": "text/html"});
        res.end(content);
    });
});
</code></pre>