i'm new in nodejs. i'm trying to show html form via nodejs,here is my code :
function start(response){
console.log("Request handler 'start' was called.");
var body = '<html>\n'+
'<head>\n'+
'<meta http-equiv="Content-Type" content = "text/html:'+
'charset = UTF-8" />'+
'</head>'+
'<body>'+
'<form action="/upload" method="post">'+
'<textarea name="text" rows="20" cols="60"></textarea>'+
'<input type="submit" value="submit text" />'+
'</form>'+
'</body>'+
'</html>';
response.writeHead(200,{"Content-Type":"text/plain"});
response.write(body);
response.end();
}
the problem is when i run the code server just give me html source check image :
where is my problem ?
