informational tech blog or a retro-software archive

Written by

in

The term Content-Type generally refers to one of two main concepts depending on your context: the HTTP Header (used in web development and APIs) or the Content Model (used in content management systems and marketing). 1. Web Development & APIs (HTTP Content-Type)

In web technology, Content-Type is an HTTP header that specifies the Media Type (or MIME type) of the data being sent between a client (like a web browser) and a server. It tells the recipient exactly what kind of data they are receiving and how to process or render it.

Structure: It usually consists of a type and a subtype separated by a slash, sometimes followed by parameters (like character encoding).

Example: Content-Type: text/html; charset=UTF-8 tells the browser to render the body as an HTML webpage using UTF-8 text encoding. Common Types: Text: text/plain, text/html, text/css Images/Media: image/png, image/jpeg, audio/mpeg, video/mp4

Application/Data: application/json, application/xml, application/pdf

Form Data: application/x-www-form-urlencoded (used for standard HTML form submissions) or multipart/form-data (used for uploading files). 2. Digital Marketing & CMS (Content Strategy)

If you are working with a Content Management System (like WordPress, Drupal, SharePoint, or Contentful), a content type is a reusable template or schema used to classify and standardize digital content. Content-Type header – HTTP – MDN Web Docs – Mozilla

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *