Web Design

(Nancy Kaufman) #1

35


CHAPTER

Getting Started with HTML 2


Folder Path


When you link to any page other than the home page in a site, the host,
domain, and TLD are followed by the folder path to the page being
requested. For example, a link to the address http://www.robhuddleston.com/
books/tyvwebdesign.html is asking for a document, tyvwebdesign.html, in
a folder called books at that site.


tyvwebdesign.html

books

Requesting the Default Document


Anytime you link to a site without requesting a specific page, as
when you provide only the prefix, host, domain, and TLD, or anytime
you link to a folder within a site, you are requesting that site’s or
folder’s default document, more commonly called the home page. For
example, a link to http://www.yoursite.com/products actually
returns the home page within the products folder.


com


home
page

Host, Domain, and Top-Level Domain Name


The part of the address that follows the prefix is made up of the
host, the domain name, and the top-level domain (TLD). In the
example http://www.wiley.com, the host is www, the domain name is wiley,
and the TLD is .com. Some sites, such as twitter.com, do not use a
host. Other familiar TLDs include .net and .org. comcomcom


wileywileywiley

wwwwwwwww

top-level domain

domain/subdomain

host

HTTP Prefix


Absolute paths require that you use the complete address to the
page in question. For most sites, this begins with http://, which is a
way of telling the browser that you are using the HTTP protocol for
this connection. Another common prefix is https://, the secure
version of HTTP. You need to use whatever prefix is required by the
site to which you are connecting.


https://

http://
Free download pdf