HTML and CSS Reference
In-Depth Information
However, do not assume that the Web server's operating system dictates everything; for
example, URLs do not use Windows-style backslashes.
After you specify the server and the directory path for a document, the next step toward
locating it is to specify its filename. Commonly, when a simple directory-based URL is
given like
a default file in that directory, often named index.html, will be returned by the Web server.
However, this file could be referenced directly like so:
File names are arbitrary,
and may be case sensitive, depending on the host operating system. Thus
may reference the same object or not, depending on the operating system. Filenames may
include special characters like dashes and underscores,
However, depending on the special characters used, they may be encoded (see the upcoming
section “Encoding” for more information). As an example, the filename “really long file
name.html” with spaces should encode as
A dot separates the filename and the extension, which is a code, generally composed of
three or four letters that identifies the type of information contained in the file. For example,
HTML source files generally have a .htm or .html extension, CSS files, a .css extension,
JavaScript files, a .js extension, JPEG images have a .jpg extension, and so on.
A file's extension is critically important for Web applications because it is the primary
indication of the information type that a file contains. However, it is possible to remove file
Search WWH ::

Custom Search