.sgml SGML document
Text & source code
| MIME type | text/sgml |
|---|---|
| Description | SGML document |
| Acronym | SGML – Standard Generalized Markup Language |
| Category | Text & source code |
| Based on | text/plain |
| Other extensions | .sgm |
Frequently asked questions
What is a .sgml file?
A .sgml file is a “SGML document” (MIME type text/sgml). SGML stands for Standard Generalized Markup Language.
How do I open a .sgml file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .sgml 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.sgml shows the guessed type.
Which format is .sgml based on?
Technically a .sgml file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .sgml?
The MIME type is text/sgml. In the Apache web server: AddType text/sgml .sgml; in nginx: types { text/sgml sgml; }.