.css CSS stylesheet
Text & source code
| MIME type | text/css |
|---|---|
| Description | CSS stylesheet |
| Acronym | CSS – Cascading Style Sheets |
| Category | Text & source code |
| Based on | text/plain |
Frequently asked questions
What is a .css file?
A .css file is a “CSS stylesheet” (MIME type text/css). CSS stands for Cascading Style Sheets.
How do I open a .css 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 .css 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.css shows the guessed type.
Which format is .css based on?
Technically a .css 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 .css?
The MIME type is text/css. In the Apache web server: AddType text/css .css; in nginx: types { text/css css; }.