Media type

In information and communications technology, a media type,[1][2] content type[2][3] or MIME type[1][4][5] is a two-part identifier for file formats and content formats. Their purpose is comparable to filename extensions and uniform type identifiers, in that they identify the intended data format. They are mainly used by technologies underpinning the Internet, and also used on Linux desktop systems.

The Internet Assigned Numbers Authority (IANA) is the official authority for the standardization and publication of these classifications. Media types were originally defined in Request for Comments RFC 2045 (MIME) Part One: Format of Internet Message Bodies (Nov 1996) in November 1996 as a part of the MIME (Multipurpose Internet Mail Extensions) specification, for denoting type of email message content and attachments;[6] hence the original name, MIME type. Media types are also used by other internet protocols such as HTTP,[7] document file formats such as HTML,[8] and the XDG specifications implemented by Linux desktop environments,[5] for similar purposes.

Terminology

Different internet standards or web standards bodies differ on the preferred term for this type of identifier.

The IANA and IETF use the term "media type", and consider the term "MIME type" to be obsolete,[1] since media types have become used in contexts unrelated to email, such as HTTP. By contrast, the WHATWG continues to use the term "MIME type" and discourages use of the term "media type" as ambiguous, since it is used with a different meaning in connection with the CSS @media feature.[4]

The HTTP response header for providing the media type is Content-Type.[2] The W3C has used ContentType as an XML data-type name for a media type.[3] XDG specifications implemented by Linux desktop environments continue to use the term "MIME type".[5]

Structure

A media type consists of a type and a subtype, which is further structured into a tree. A media type can optionally define a suffix and parameters:

mime-type = type "/" [tree "."] subtype ["+" suffix]* [";" parameter];

As an example, an HTML file might be designated text/html; charset=UTF-8. In this example, text is the type, html is the subtype, and charset=UTF-8 is an optional parameter indicating the character encoding.

Types, subtypes, and parameter names are case-insensitive. Parameter values are usually case-sensitive, but may be interpreted in a case-insensitive fashion depending on the intended use.[6]

Types

The "type" part defines the broad use of the media type. As of November 1996, the registered types were: application, audio,image, message, multipart, text and video.[6] By July 2024, the registered types included the foregoing, plus font, example, model, and haptics.[1]

An unofficial top-level type in common use is chemical, used for chemical file formats.[9][10][11] In the context of Linux desktop environments, the unofficial top-level types inode (inodes other than normal files, such as filesystem directories, device files or symbolic links),[12] x-content (removable media, such as x-content/image-dcf for DCF digital cameras),[13] package (package manager packages)[14] and x-office (generic categories of office productivity software document)[14] are used.

Subtypes

A subtype typically consists of a media format, but it may or must also contain other content, such as a tree prefix, producer, product or suffix, according to the different rules in registration trees.

All media types should be registered using the IANA registration procedures. For the efficiency and flexibility of the media type registration process, different structures of subtypes can be registered in registration trees that are distinguished by the use of tree prefixes. Currently the following trees are created: standard (no prefix), vendor (vnd. prefix), personal or vanity (prs. prefix), unregistered (x. prefix). These registration trees were first defined in November 1996 (obsoleted RFC 2048 - currently RFC 6838). New registration trees may be created by IETF Standards Action for external registration and management by well-known permanent organizations (e.g. scientific societies).

Standards tree

The standards tree does not use any tree prefix. Examples are text/javascript, image/png.[15]

Registrations in the standards tree must be either associated with IETF specifications approved directly by the IESG, or registered by an IANA recognized standards-related organization.

Vendor tree

The vendor tree includes media types associated with publicly available products. It uses the vnd. tree prefix. Examples are: application/vnd.ms-excel, application/vnd.oasis.opendocument.text.

The terms "vendor" and "producer" are considered equivalent in the context. Industry consortia as well as non-commercial entities can register media types in the vendor tree. A registration in the vendor tree may be created by anyone who needs to interchange files associated with some software product or set of products. However, the registration belongs to the vendor or organization producing the software that employs the type being registered, and that vendor or organization can at any time elect to assert ownership of a registration done by a third party.

Personal or vanity tree

The personal or vanity tree includes media types associated with non publicly available products or experimental media types. It uses the prs. tree prefix. Examples are audio/prs.sid, image/prs.btif.

Unregistered tree

The unregistered tree includes media types intended exclusively for use in private environments and only with the active agreement of the parties exchanging them. It uses the x. tree prefix. Examples are application/x.foo, video/x.bar. Media types in this tree cannot be registered.

This type was originally defined in RFC 1590 (published in September 1993) using the x- or X- prefix. RFC 2048 (published in November 1996) introduced the x. prefix, but discouraged use of the unregistered tree, as new personal and vendor trees with relaxed registration requirements are now available. The current RFC 6838 (published in January 2013) maintains the same recommendation, but subtypes prefixed with x- or X- are no longer considered to be members of this tree.

Media types that have been widely deployed (with a subtype prefixed with x- or X-) without being registered, should be, if possible, re-registered with a proper prefixed subtype. If this is not possible, the media type can, after an approval by both the media types reviewer and the IESG, be registered in the standards tree with its unprefixed subtype. application/x-www-form-urlencoded is an example of a widely deployed type that ended up registered with the x- prefix.[16]

Suffix

Suffix is an augmentation to the media type definition to additionally specify the underlying structure of that media type, allowing for generic processing based on that structure and independent of the exact type's particular semantics. Media types that make use of a named structured syntax should use the appropriate IANA registered "+"suffix for that structured syntax when they are registered. Unregistered suffixes should not be used (since January 2013). Structured syntax suffix registration procedures are defined in RFC 6838.[15]

The +xml suffix has been defined since January 2001 (RFC 3023[17]), and was formally included in the initial contents of the Structured Syntax Suffix Registry along with +json, +ber, +der, +fastinfoset, +wbxml, and +zip in January 2013 (RFC 6839). Subsequent additions include +gzip, +cbor, +json-seq, and +cbor-seq.[18]

Common examples

From the IANA registry:[1]

  • application/json
  • application/ld+json (JSON-LD)
  • application/msword (.doc)
  • application/pdf
  • application/sql
  • application/vnd.api+json
  • application/vnd.microsoft.portable-executable (.efi, .exe, .dll)
  • application/vnd.ms-excel (.xls)
  • application/vnd.ms-powerpoint (.ppt)
  • application/vnd.oasis.opendocument.text (.odt)
  • application/vnd.openxmlformats-officedocument.presentationml.presentation (.pptx)
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (.xlsx)
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document (.docx)
  • application/x-www-form-urlencoded
  • application/xml
  • application/zip
  • application/zstd (.zst)
  • audio/mpeg
  • audio/ogg
  • image/avif
  • image/jpeg (.jpg, .jpeg, .jfif, .pjpeg, .pjp) [19]
  • image/png
  • image/svg+xml (.svg)
  • image/tiff (.tif)
  • model/obj (.obj)
  • multipart/form-data
  • text/plain
  • text/css
  • text/csv
  • text/html
  • text/javascript(.js)
  • text/xml

Mailcap

Mailcap (derived from the phrase "mail capability") is a type of meta file used to configure how MIME-aware applications such as mail clients and web browsers render files of different MIME-types. The mailcap format is defined by RFC 1524 "A User Agent Configuration Mechanism for Multimedia Mail Format Information" but is not defined as an Internet standard. It is supported by most Unix systems.

Lines can be comments starting with the # character, or a mime-type followed by how to handle that mime type.

mime.types

An associated file is the mime.types file, which associates filename extensions with a MIME type. If the MIME type is properly set, this is unnecessary, but MIME types may be incorrectly set, or set to a generic type such as application/octet-stream, and mime.types allows one to fall back on the extension in these cases. Similarly, since many file systems do not store MIME type information, but instead rely on the filename extension, a mime.types file is frequently used by web servers to determine MIME type.

When viewing a file, these two work together as follows: mime.types associates an extension with a MIME type, while mailcap associates a MIME type with a program.

In UNIX-type systems, the mime.types file is usually located at /etc/mime.types and/or $HOME/.mime.types and the format is simply that each line is a space-delimited list of a MIME type, followed by zero or more extensions. For example, the HTML type can be associated with the extensions .htm and .html by the following line:

text/html     htm   html

Netscape use

The mime.types file dates to Netscape, where it used a different format;[20] it used key–value pairs and a comma-separated list of extensions, together with a standard header consisting of a specific comment that identifies the file as a mime.types file, as follows:

#--Netscape Communications Corporation MIME Information
# Do not delete the above line. It is used to identify the file type.

type=text/html exts=htm,html

See also

References

  1. ^ a b c d e "Media Types". IANA. IANA. 4 June 2018. Retrieved 5 June 2018. [RFC2046] specifies that Media Types (formerly known as MIME types) and Media Subtypes will be assigned and listed by the IANA.
  2. ^ a b c Fielding, R.; Nottingham, M.; Reschke, J. (2022). "Media Type". HTTP Semantics. sec. 8.3.1. doi:10.17487/rfc9110. ISSN 2070-1721. STD 97. RFC 9110. HTTP uses media types [RFC2046] in the Content-Type (Section 8.3) and Accept (Section 12.5.1) header fields in order to provide open and extensible data typing and type negotiation.
  3. ^ a b "4.3. Attribute Types". XHTML Modularization 1.1 - Second Edition. W3C. 2010-07-29. ContentType: A media type, as per [RFC2045].
  4. ^ a b Hemsley, Gordon P. "4.1. MIME type representation". MIME Sniffing Standard. WHATWG. Standards are encouraged to consistently use the term MIME type to avoid confusion with the use of media type as described in Media Queries.
  5. ^ a b c "shared-mime-info-spec". freedesktop.org. 2023-09-03.
  6. ^ a b c Freed, N.; Borenstein, N. (November 1996). "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies". Internet Engineering Task Force. Retrieved 15 July 2015.
  7. ^ Nielsen, Henrik; Fielding, Roy T.; Berners-Lee, Tim (May 1996). "Hypertext Transfer Protocol -- HTTP/1.0". Retrieved 2 Feb 2017.
  8. ^ "HTML 4.01 Specification". 24 Dec 1999. Retrieved 2 Feb 2017.
  9. ^ Daniel Leidert, Egon Willighagen (2007). "The chemical-mime-data project". Archived from the original on 2016-10-08. Retrieved 2016-04-28.
  10. ^ "Chemical MIME Home page". 22 December 1998. Retrieved 11 May 2019.
  11. ^ S. Rzepa, Henry; Murray-Rust, Peter; J. Whitaker, Benjamin (14 August 1998). "The Application of Chemical Multipurpose Internet Mail Extensions (Chemical MIME) Internet Standards to Electronic Mail and World Wide Web Information Exchange". Journal of Chemical Information and Modeling. 38 (6). American Chemical Society: 976–982. doi:10.1021/ci9803233.
  12. ^ "2.13. Non-regular files". Shared MIME Info Specification. freedesktop.org.
  13. ^ "2.14 Content types for volumes". Shared MIME Info Specification. freedesktop.org.
  14. ^ a b "Table 10: Standard MIME type icons". Icon Naming Specification. freedesktop.org.
  15. ^ a b Freed, N. (January 2013). "Media Type Specifications and Registration Procedures". IETF Request for Comments (RFC) Pages - Test. RFC6838. Internet Engineering Task Force (IETF). ISSN 2070-1721. Retrieved 15 July 2015.
  16. ^ "application/x-www-form-urlencoded (registered 2014-05-14, updated 2014-05-14, updated 2020-07-14)".
  17. ^ Kohn, Dan (January 2001). "XML Media Types". tools.ietf.org. Retrieved 2021-03-05.
  18. ^ "Structured Syntax Suffix Registry" (XML). IANA. 2012-07-20. Retrieved 2019-11-08.
  19. ^ "MIME types (IANA media types) - HTTP | MDN". 18 December 2023.
  20. ^ WEBMASTERS: mime types Archived 2000-12-07 at archive.today, John McAnally, Thu, 22 Jan 1998 15:29:29 -0600 (CST)

Read other articles:

Peristiwa MadiunBagian dari Revolusi Nasional IndonesiaSekelompok orang yang diborgol ditahan oleh TNI, Madiun, September 1948Tanggal18 September – 19 Desember 1948LokasiMadiunStatus Pemberontakan ditumpasPihak terlibat Indonesia TNI POLRI Front Demokrasi Rakyat PKI PSI PBI SOBSI PesindoTokoh dan pemimpin Soekarno Mohammad Hatta Soedirman Gatot Soebroto Abdul Haris Nasution Musso Amir Sjarifuddin D. N. AiditM.H. LukmanNjotoKorban 1.920 tewas (termasuk warga sipil)[1] tidak...

 

 

Maison Carrée di Nîmes Kuil Romawi kuno adalah salah satu bangunan paling penting dalam sejarah Romawi kuno, dan beberapa bangunan terkaya dalam arsitektur Romawi kuno, meskipun hanya sedikit yang masih ada dalam keadaan lengkap. Saat ini, mereka masih dianggap simbol paling menonjol dari arsitektur Romawi.[1] Konstruksi dan keutamaan mereka menjadi bagian besar dari agama di Romawi kuno, dan seluruh kota penting memiliki setidaknya hampir satu kuil utama, serta kuil-kuil yang lebih...

 

 

Ini adalah daftar aliansi militer. Masa lampau Periode Vedik 1700–1000 SM - Sepuluh suku membentuk aliansi melawan Tritsu dalam Pertempuran Sepuluh Raja Periode Helenik Aliansi konfederasi negara-kota Yunani 502–449 SM - Peperangan Medik Liga Helenik - Athena, Lacedemonia, Makedon, lain-lain 431–404 SM - Perang Peloponesia Liga Delos - Athena, Argos, Chios, Samos, Lesbos, lain-lain Liga Peloponesia - Lacedemonia, Corinth, Thebes, Syracuse, lain-lain Abad Pertengahan 634–1853 Perang Kr...

GunungsindurKecamatanPeta letak desa di Kecamatan Gunungsindur.Peta lokasi Kecamatan GunungsindurNegara IndonesiaProvinsiJawa BaratKabupatenBogorPemerintahan • CamatYodi M.S. ErmayaPopulasi • Total102.032 jiwaKode pos1634116349Kode Kemendagri32.01.11 Kode BPS3201250 Desa/kelurahan10 desa Gunungsindur (aksara Sunda: ᮍᮥᮔᮥᮀᮞᮤᮔ᮪ᮓᮥᮁ) adalah sebuah kecamatan yang terletak di Kabupaten Bogor, Provinsi Jawa Barat, Indonesia. Kecamatan ini berbatasa...

 

 

Debunked conspiracy theories Birtherism redirects here. For similar challenges against other people, see Natural-born-citizen clause (United States) § Eligibility challenges. A 2010 billboard displayed in South Gate, California, questioning the validity of Barack Obama's birth certificate and by extension his eligibility to serve as President of the U.S. The billboard was part of an advertising campaign by WorldNetDaily, whose web address appears on the billboard's bottom right corner. ...

 

 

منطقة لاندسهوت  علم شعار الاسم الرسمي (بالألمانية: Landkreis Landshut)‏(بالألمانية: Bezirksamt Landshut)‏    الإحداثيات 48°34′N 12°12′E / 48.56°N 12.2°E / 48.56; 12.2   [1] تاريخ التأسيس 1 يوليو 1862  تقسيم إداري  البلد ألمانيا[2]  التقسيم الأعلى بافاريا السفلى  العاص...

Ikon Teofani buatan Rusia, 1497 Teofani (Yunani: θεοφάνεια, teofania)[1] adalah peristiwa penampakan sosok ilahi kepada manusia.[2][3][4] Istilah ini sudah jamak digunakan sebagai sebutan bagi peristiwa penampakan dewa-dewi dalam agama-agama Yunani dan Timur Dekat pada Abad Kuno. Wiracarita Ilias adalah sumber tertua yang memuat deskripsi teofani pada Abad Klasik, tetapi mungkin sekali deskripsi teofani tertua tersurat di dalam naskah wiracarita Gi...

 

 

For other uses, see Jinchang (disambiguation). Prefecture-level city in Gansu, People's Republic of ChinaJinchang 金昌市Prefecture-level cityNickname: 'Nickel Capital' (镍都)Location of Jinchang City jurisdiction in GansuJinchangLocation of the city centre in GansuShow map of GansuJinchangJinchang (China)Show map of ChinaCoordinates (Jinchang municipal government): 38°31′17″N 102°11′17″E / 38.5214°N 102.1880°E / 38.5214; 102.1880CountryPeople'...

 

 

Air Vice Marshal (Late)Khademul BasharBir Uttom3rd Chief of Air StaffIn office1 May 1976 – 1 September 1976Preceded byMuhammad Ghulam TawabSucceeded byAbdul Gafoor Mahmud Personal detailsBorn1 September 1935Bogura, Bengal, British India (now Rajshahi, Bangladesh)Died1 September 1976(1976-09-01) (aged 41)Tejgaon, Dhaka, BangladeshAwards Bir UttomMilitary serviceAllegianceBangladesh Pakistan (Before 1971)Branch/service Bangladesh Air Force Pakistan Air ForceYears&...

Mario Perazzolo Nazionalità  Italia Altezza 169 cm Calcio Ruolo Mediano Termine carriera 1950 - giocatore1973 - allenatore CarrieraGiovanili  PadovaSquadre di club1 1928-1933 Padova125 (33)1933-1936 Fiorentina85 (7)1936-1941 Genova 1893165 (14)1942-1943 Brescia31 (2)1943-1944 Padova11 (2)1945-1948 Brescia89 (2)1948-1950 Siracusa1 (0)Nazionale 1936-1939 Italia8 (0)Carriera da allenatore 1946 Brescia1950-1951 Siracusa1951-1953 Triest...

 

 

English footballer Jack Whatmough Whatmough warming up with Portsmouth in 2014Personal informationFull name Jack David Vincent Whatmough[1]Date of birth (1996-08-19) 19 August 1996 (age 27)Place of birth Gosport, EnglandHeight 6 ft 0 in (1.84 m)[2]Position(s) Centre-backTeam informationCurrent team Preston North EndNumber 26Youth career2009–2012 PortsmouthSenior career*Years Team Apps (Gls)2012–2021 Portsmouth 121 (3)2016 → Havant & Waterlooville ...

 

 

El Periplo de Pseudo-Escílax es una obra en griego antiguo, datada a finales del siglo IV o principios del III a. C., que describe un periplo alrededor del mar Mediterráneo, incluyendo el mar Negro y las costas de África más allá de las Columnas de Hércules.[1]​ La obra El autor Esta obra antigua con instrucciones de navegación marítima tiene el título de Περίπλους τῆς θαλάσσης τῆς οἰκουμένης Εὐρώπης καἰ 'Ασίας κα...

Diplomacy and wars of six largest powers in the world Bismarck manipulates the three emperors – Alexander III of Russia, William I of Germany and Francis Joseph of Austria-Hungary – like a ventriloquist's puppets; John Tenniel 1884 PUNCH This article covers worldwide diplomacy and, more generally, the international relations of the great powers from 1814 to 1919.[note 1] This era covers the period from the end of the Napoleonic Wars and the Congress of Vienna (1814–1815), to the...

 

 

  هذه المقالة عن الحكم الذاتي. لنعم للمبادرة التي اقترحها المغرب لإنهاء نزاع الصحراء الغربية، طالع حكم ذاتي (صحراء غربية). جزء من سلسلة مقالات حولالحوكمة النماذج سيئة [الإنجليزية]‏ تعاونية رشيدة متعددة الأطراف [الإنجليزية]‏ مفتوحة المصدر خاصة ذاتية حسب المس...

 

 

Chemical compound BenzobarbitalClinical dataOther namesBenzonalATC codenoneIdentifiers IUPAC name 1-benzoyl-5-ethyl-5-phenyl-1,3-diazinane-2,4,6-trione CAS Number744-80-9 YPubChem CID12938ChemSpider12402 YUNIIYNJ78BD0AHChEMBLChEMBL1338506 NCompTox Dashboard (EPA)DTXSID1046138 Chemical and physical dataFormulaC19H16N2O4Molar mass336.347 g·mol−13D model (JSmol)Interactive image SMILES CCC1(C(=O)NC(=O)N(C1=O)C(=O)C2=CC=CC=C2)C3=CC=CC=C3 InChI InChI=1S/C19H16N2O4/c1-2-19(14...

Véase también: Campaña de la Gobernación de DaraaOfensiva del sur de Siria (2018) Parte de la Guerra Civil SiriaParte de Campaña de la Gobernación de Daraa Arriba: Mapa de la operación hasta el 20 de julio de 2018. Abajo: Asalto al bolsillo del EI, del 23 al 30 de julio de 2018       Controlado por el Ejército Árabe Sirio       Controlado por Insurgentes e islamistas       Controlado por el Estado Islámico de...

 

 

Political reform movement in the Ottoman Empire Not to be confused with Young Ottomans. This article is about the reform movement within the Ottoman Empire. For other uses, see Young Turks (disambiguation). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Young Turks – news · newspapers · books · scholar · JS...

 

 

Danny Peary (lahir tahun 1949) merupakan seorang wartawan, pengamat film dan penulis artikel olahraga asal Amerika Serikat. Awal kariernya ia mulai saat menjadi pengulas film untuk majalah TV Guide di Kanada. Saat ini Peary lebih banyak fokus menulis artikel serta buku-buku bertema olahraga. Hasil karya Penulis: Cult Movies (1981) Cult Movies 2 (1983) Omni's Screen Flights/Screen Fantasies: The Future According to the Cinema (1984) Guide for the Film Fanatic (1986), short reviews of over 1650...

Rabbinic literatureTalmud Readers by Adolf Behrman Talmudic literature Tannaitic Mishnah Tosefta Amoraic (Gemara) Jerusalem Talmud Babylonian Talmud Later Minor Tractates Halakhic Midrash Exodus Mekhilta of Rabbi Ishmael Mekhilta of Rabbi Shimon bar Yochai Leviticus Sifra (Torat Kohanim) Numbers and Deuteronomy Sifre Sifrei Zutta on Numbers (Mekhilta le-Sefer Devarim) Aggadic Midrash Tannaitic Seder Olam Rabbah Alphabet of Rabbi Akiva Baraita of the Forty-nine Rules Baraita on the Thirty-two ...

 

 

LighthousePorto Torres Porto Torres LighthouseLocationPorto TorresSardiniaItalyCoordinates40°50′10″N 8°23′50″E / 40.836072°N 8.397292°E / 40.836072; 8.397292TowerConstructed1855 (first)Foundationmasonry baseConstructionmasonry turretHeight20 metres (66 ft)Shapequadrangular turret with three balconies and lantern atop a 2-storey keeper's houseMarkingswhite turret, balcony and lantern; grey metallic lantern domePower sourcemains electricity Oper...