Skip to content

Html

HTML

Content type HTML
g.res.contentType = T.EContentType.HTML;
return "<!DOCTYPE html><html><body><h1>My First Heading </h1><p> My first paragraph.</p></body></html>";

Response

<!DOCTYPE html><html><body><h1>My First Heading </h1><p> My first paragraph.</p></body></html>