Hacker News new | ask | show | jobs
by peeters 2063 days ago
Sure it is, just serve it with Content-Type: 'plain/text'.
2 comments

That has nothing to do with HTML. That's an HTTP header.

This thread has a surprising amount of not knowing the difference between HTML and HTTP. The original post is entirely about HTML and does not involve HTTP transmission at all.

HTML <meta> tags are a thing, to invoke browser behavior typically associated with HTTP headers. I'm not sure if that can get you there; I would guess that to visually output the meta tag would require the same * { display:block } shenanigan that the original post is about.

Declaring that it’s not an HTML file is a weird way to claim the smallest valid HTML file.