// mime type · text type

text/html

HTML document · .html

What text/html is

text/html marks an HTML document, the format browsers parse into a rendered page. Responses almost always pair it with a charset, e.g. text/html; charset=utf-8.

How it's used

You'll see this as a Content-Type value on requests and responses — for example Content-Type: text/html. It's the type associated with the .html file extension. Text types are human-readable formats. On the web they're assumed to be UTF-8, and browsers can display them directly.

Other text types