When I use res.send to display the data on the client's browser, the H1 format gets applied
res.send("<h1>The temperature of London is: " + temp + " Degree Celcius</h1>");
But I would like to display multiple response and when I use res.write, the h1 format doesn't and the multiple responses all display on a single line instead of different lines.
res.write("<h1>The temperature of London is: " + temp + " Degree Celcius</h1>");
And when I have multiple res.write, everything displays on a single line instead of separate lines
res.write("<h1>The temperature of London is: " + temp + " Degree Celcius</h1>");
res.write("<h3> it is " + description + ".</h3>");
res.write(icon);
res.send();
The result shows shows as below, not formatted and still displays the the html tags:
it is clear sky.
The temperature of London is: 14.41 Degree Celcius
01nHelp needed please. Thanks.