1.

Which one is the correct syntax for specifying media type?(a) type ”/” subtype *( “;” parameter)(b) subtype ”/” type *(“;” parameter)(c) parameter “/” type *(“;” subtype)(d) (“;” subtype) “/” type *(parameter)I have been asked this question during an interview.My question is based upon HTTP Overview topic in section HTML Fundamentals of HTML

Answer»

Correct choice is (a) type ”/” subtype *( “;” parameter)

EASIEST explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions