.htm XHTML page
Other formats
| MIME type | application/xhtml+xml text/html |
|---|---|
| Description | XHTML page |
| Acronym | XHTML – Extensible HyperText Markup Language |
| Category | Other formats |
| Based on | application/xml |
| Other extensions | .html, .xht, .xhtml |
Frequently asked questions
What is a .htm file?
The .htm extension is used for several formats: XHTML page (application/xhtml+xml) and HTML document (text/html). XHTML stands for Extensible HyperText Markup Language.
How do I open a .htm file?
With the program that created the file. On Linux, xdg-mime query default with the MIME type shows the default application, and xdg-open opens the file with it.
How can you tell a genuine .htm file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.htm shows the guessed type.
Which format is .htm based on?
Technically a .htm file is a subtype of “XML document” (application/xml), so programs for that base format can often read it too.
Which MIME type belongs to .htm?
The MIME type is application/xhtml+xml. In the Apache web server: AddType application/xhtml+xml .htm; in nginx: types { application/xhtml+xml htm; }.