I am a bit confused by the nesting that occurs in Media types (also known as their former name 'MIME types'):
The top level types are called application
, text
, image
video
, audio
, message
, model
and a couple of others. However, it is not clear to me why certain subtypes are nested under one of these, while other subtypes are nested under a different one:
- Datastructures: Why
application/json
buttext/csv
? And why doesxml
appear both asapplication/xml
andtext/xml
? And why are these not inmessage/*
ormodel/*
, which at least on a surface level seem to fit 'encoded datastructure' better? - Languages: Why
application/javascript
buttext/html
andtext/css
? - Why is there both
application/xml
andtext/xml
?
In an effort to make this a clear, objective question, maybe the question might be best phrased as: What are the rules that determine in which type a 'Media-type'-subtype will be placed, and why are there some 'duplicates'?