type

Gets or sets the MIME type of a media resource.

MDN Reference