Quackit Logo
Sponsored Links
$1.99 Domain Names
With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.
Create free Flash websites

How Websites Work

Print Version

This tutorial provides a high-level overview of how websites work. If you're about to create your first website, this article will help you understand how everything fits together. The tutorial contains the following lessons:

  1. (current page)
  2. Web Page Content
  3. Web Protocols
  4. Web Addresses
  5. How DNS Works

What is a Website?

A website is a collection of web pages. These web pages are usually located on a web server that is connected to the Internet. The web server is a computer that has been built specifically to host websites, and contains web server software.

The web server is usually located with a web hosting provider (a company that provides web hosting to its customers).

What Happens When I view a Website?

The following diagram demonstrates what happens each time you view a website:

Demonstration of requesting a web page from the Internet

This diagram is only a simplistic version of what happens, but the key point is that, each time you view a web page in your browser, you initiate a request across the Internet to a web server. This is true even if you view multiple pages from the same website - each new page is a new request.

Actually, in most cases, each web page results in multiple requests. This is because most web pages consist of more than one file (or "resource"). Therefore, if a page contains 3 images, there will be at least 4 requests; 1 for the web page, and 1 for each image.

So, for example, if you type "www.natural-environment.com/index.cfm" into your browser, the following files might be requested:

  • http://www.natural-environment.com/index.cfm
  • http://www.natural-environment.com/images/image_1.gif
  • http://www.natural-environment.com/images/image_2.gif
  • http://www.natural-environment.com/images/image_3.gif

In this case there are 3 images (called "image_1.gif", "image_2.gif", and "image_3.gif") located in a directory called "images".

It's important to note that each file - including the web page file (index.cfm) - needs to be downloaded to your computer before you can view it. That's why you may sometimes see a web page appear without the images first, then one by one, the images appear. Larger images will take longer to appear because they take longer to download. This is why the speed of your Internet connection is important - a slower connection will make many websites appear slower (especially those with lots of images).

Enjoy this website?

  1. Add this page to your Favorites
  2. Link to this page (copy/paste into your own website or blog):
  3. Help support Quackit by making a donation
  4. Add this page to your favorite social bookmarks sites:      

Oh, and thank you for supporting Quackit!

FREE Hosting!
With every domain you register with ZappyHost you get FREE hosting.
Need Website Content?
Get unique, quality digital content for your website.
  • 270+ Website Templates
  • 800+ Flash Templates
  • 25,000+ Images, Logos
  • 30,000+ e-Books
  • 15,000+ Scripts
  • 27,000+ Animated GIFs
  • 21,000+ Ringtones
  • ...and much more!
Get your content now!