.xhtml XHTML page
Other formats
| MIME type | application/xhtml+xml |
|---|---|
| Description | XHTML page |
| Acronym | XHTML – Extensible HyperText Markup Language |
| Category | Other formats |
| Based on | application/xml |
| Other extensions | .htm, .html, .xht |
Frequently asked questions
What is a .xhtml file?
A .xhtml file is a “XHTML page” (MIME type application/xhtml+xml). XHTML stands for Extensible HyperText Markup Language.
How do I open a .xhtml 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 .xhtml 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.xhtml shows the guessed type.
Which format is .xhtml based on?
Technically a .xhtml 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 .xhtml?
The MIME type is application/xhtml+xml. In the Apache web server: AddType application/xhtml+xml .xhtml; in nginx: types { application/xhtml+xml xhtml; }.