
Which of the HTTP headers does the browser look at to decide how to display the retrieved document?


Ответы на вопрос

Answer: Content-Type
It tells the browser the media type of the body of the request.
Examples:
webpage — Content-Type: text/html;charset=utf-8
jpeg image — Content-Type: image/jpeg
video — Content-Type: video/webm



The HTTP header that the browser looks at to decide how to display the retrieved document is the Content-type header . This header indicates the media type of the document, such as text/html, image/jpeg, application/json, etc. The browser uses this information to render the document according to the appropriate format and encoding. For example, if the Content-type header is text/html, the browser will parse the document as HTML and display it as a web page. If the Content-type header is image/jpeg, the browser will decode the document as a JPEG image and display it as a picture. If the Content-type header is missing or unknown, the browser may try to guess the media type based on the document content or use a default setting.


Похожие вопросы
Топ вопросов за вчера в категории Информатика








Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili