.dtd DTD file

Text & source code

MIME typeapplication/xml-dtd
DescriptionDTD file
AcronymDTD – Document Type Definition
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .dtd file?

A .dtd file is a “DTD file” (MIME type application/xml-dtd). DTD stands for Document Type Definition.

How do I open a .dtd 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 .dtd 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.dtd shows the guessed type.

Which format is .dtd based on?

Technically a .dtd 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 .dtd?

The MIME type is application/xml-dtd. In the Apache web server: AddType application/xml-dtd .dtd; in nginx: types { application/xml-dtd dtd; }.

Nearby entries