-
Which one is the correct syntax for specifying media type?
-
- (“;” subtype) “/” type *(parameter)
- parameter “/” type *(“;” subtype)
- subtype ”/” type *(“;” parameter)
- type ”/” subtype *( “;” parameter)
- None of these
Correct Option: A
Internet media types are used in Content-Type and Accept header fields. Media types are registered with IANA (Internet Assigned Number Authority). The syntax for a media type is m-type = type “/” subtype *(“;” parameter). The name of subtype, type and parameter attribute all are case sensitive.