H

Harikesh • 8.04K Points
Tutor III

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
  • Correct Answer - Option(B)
  • Views: 280
  • Filed under category HTML

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics