CP202 Lecture Notes - Lecture 3: Media Type, Meta Element, Hypertext Transfer Protocol
Document Summary
Mime (multipurpose internet mail extensions) defines how data should be transmitted through email or http. Mime defines how certain types of content should be encode for transmission. Mime also allows browsers to decide how to deal with content types. An html file should contain a meta tag with content type information: The content attribute value text/html is a mime type. Mime types consist of a type and a subtype in the format: type/subtype. The "type" denotes a general data type (text, image, audio, etc. ) while the subtype denotes a more specific type (gif, jpeg, html, avi, etc. ) Some types may have optional parameters, such as charset. There are standard mime types defined by the iana (internet assigned. Numbers authority: iana is responsible for assigning ip addresses, domain names, and administering various internet protocols. Types that begin with x- are non-standard and not registered by iana. Subtypes that start with vnd- are vendor specific.