name.html, where the .html
extension indicates an HTML document.
Here are some of the standard extensions, and their meanings:
.html (also .htm)
.txt
.gif
.xbm
.xpm
.jpeg (also .jpg)
.mpeg (also .mpg or .mpe)
.qt
.avi
.au
.Z
.gz
The World Wide Web uses MIME types (Multipurpose Internet Mail Extension) to define the type of a particular piece of transferred information. A browser in turn determines, from the MIME type, how the data should be treated. Each browser has a configuration (menu or file) that maps the types of the data to particular functions. A browser can handle many types of data itself (e.g. HTML documents, GIF images) while other types are passed to auxiliary programs, such as image viewers, movie or sound players, and so on.
HTTP servers send MIME contents-types header messages
ahead of every file they deliver to a browser. This header explicitly tells
the browser what type of data is being sent. Thus a server must have a way
of telling the type of data it is sending. Usually the server has a configuration
file that relates filename extensions to the appropriate MIME type. For example,
the MIME type for HTML documents is text/html. Thus, if a browser
reqests that a server send the file blobs.html, the server first
looks up the MIME type corresponding to the .html extension.
The server then sends a message to the browser saying that data of content-type
text/html is being sent, after which the server sends the actual data.
Other servers, such as FTP servers, do not send this MIME type information. In this case, the browser "guesses" the MIME type, based on the filename extension. Thus each browser must be configured with a list that relates typical extensions to the "most likely" type of data. This is also how a browser determines the type of files accessed locally of the computer.