You have seen the type attribute used throughout this book on a number of elements, the value of which is a MIME media type.
Multipurpose Internet Mail Extension (MIME) media types were originally devised so that e-mail could include information other than plain text. MIME media types indicate the following things:
As you have seen, however, MIME types are not just for use with e-mail; they were adopted by web servers as a way to tell web browsers what type of material was being sent to them so that they could cope with that kind of file correctly.
MIME content types consist of two parts:
The main type is separated from the subtype by a forward slash character—for example, text/html for HTML.
This appendix is organized by the main types:
For example, the text main type contains types of plain text files, such as
MIME types are officially supposed to be assigned and listed by the Internet Assigned Numbers Authority (IANA).
Many of the popular MIME types in this list (all those that ...