how to write headers
const http= require('http');
const server = http.createServer()
const server = http.createServer(()=> {})
console.log(req.method);
req.url
const server = http.createServer((req,res)=> {
res.writeHead(200,{'content-type':'text/html'})
res.writeHead(404{'content-type':'text/html'})- page not found
res.end('<h1> home page</h1>')
})
server.listen(5000)
write fro html page
readfilesync= require('readFIleSync')
const homepage= readfilesync('./index.html')
res.end(homepage)
how to make navbar in html fully good uiin navbar-app folder
it has styles.css, navbar.js,navbar.html
No comments:
Post a Comment