lookup> text/html

text/html

text/html is a text media type commonly associated with .html, .htm, .shtml extensions.

textCompressibleContent-Type
MIME typetext/html
Extensions.html .htm .shtml
Charset
CompressibleYes
Sourceiana

text/html

text/html is one of the text media types used on the internet, and it is safe to compress for transport. When serving this content over HTTP, set the Content-Type header in the response, for example:

Content-Type: text/html

Related entities: associated extensions include .html.htm.shtml, and is delivered over HTTP via the Content-Type header, commonly with GET, POST, PUT and PATCH requests.

Related formats:

HTML DocumentHTML DocumentSHTML Data & Text
.html .htm .shtmlserved as
mime type
text/htmlsent via header
http header

text/html is identified in HTTP by the Content-Type header and is commonly used with these methods:

What is text/html?

text/html is a text media type used to identify a content format; servers announce it to clients with the Content-Type header.

Which file extensions use text/html?

Extensions such as .html, .htm, .shtml are associated with this MIME type.

How do I set the Content-Type for text/html?

Send Content-Type: text/html in the HTTP response.

Related extensions

Related MIME types

Related headers

Related methods