Q. What indicates the content in file is HTML when delivered on the network.

  • (A) The extension of the file “.html”
  • (B) The “content-type” header
  • (C) Both “.html” extension and “content-type” header
  • (D) None of the mentioned
💬 Discuss
✅ Correct Answer: (B) The “content-type” header
Explanation: When a file is delivered over a network (e.g., via HTTP), the Content-Type header in the HTTP response specifies the type of content being sent. For HTML files, this header is usually:

Content-Type: text/html

The file extension (.html) helps browsers and operating systems identify files locally, but it is not used in network communication. The web server determines how to serve the file based on its configuration and sends the appropriate Content-Type header.
Explanation by: Mr. Dubey
When a file is delivered over a network (e.g., via HTTP), the Content-Type header in the HTTP response specifies the type of content being sent. For HTML files, this header is usually:

Content-Type: text/html

The file extension (.html) helps browsers and operating systems identify files locally, but it is not used in network communication. The web server determines how to serve the file based on its configuration and sends the appropriate Content-Type header.

💬 Discussion


📊 Question Analytics

👁️
412
Total Visits
📽️
4 y ago
Published
🎖️
Harikesh
Publisher
📈
89%
Success Rate