Web Pages & the Internet                              web_in_brief_101.doc      Oct 24, 2015     Harry Baya

A webpage is a file containing text.  The text is in a format that can be displayed on a screen and read by a user.   A webpage file has the suffix “.html”, e.g.   myPage.html.    These are called HTML files.  The term text refers to a sequence of letters that can be typed on a computer keyboard.   This document is an example of text.

A user creates a web page by creating an HTML file.   Any user can create a web page on his or her computer and view it in a browser (such as Google Chrome)  on that computer.   No special software is required.   All Windows, Macintosh and Linux computer have a text editor that can be used to create an HTML file

If the user wants the web page to be visible by other internet users then the HTML file will have to be stored on an internet server.   I estimate that less than 1% of all users of home or office computers have the knowledge and ability to put an HTML file on an internet server.  

An HTML file will contain some HTML code (mainly tags enclosed in pointed brackets such as <body> ) and the contents the web page is intended to display.   It may also contain JavaScript program statements and some other stuff. 

HTML stands for Hypertext Markup Language.    HTML code can be used add “mark up” codes to a text document. The “mark up” codes tell a “browser” program how to display the text.   For example, HTML codes can be used to tell what size the letters in a word will be and what color letters will be.

A web page can be created on a home computer using a text editor, such as Windows Notepad.   The file can then be opened by a browser program on the same computer.   The browser program will interpret the HTML codes and display the contents of the file as called for by those codes.

The internet (also known as the World Wide Web) permits browsers to open HTML files stored on computers located at distant locations.   The computers that store HTML files and permit distant users to open them are called “servers” or “internet servers.  Computers uses as  internet servers are usually significantly more powerful, and expensive, than most home or office computers.  Most internet servers are owned and run by commercial firms that charge a fee for allowing customers to put their web pages on that server.

Customers who would like their web page to be accessible by internet users pay the internet server companies to “host” the customer’s website.   Hosting a website means storing an HTML file on the server so that other internet users can view the web page called for by the HTML file.

When a personal computer, such as a laptop or desktop computer, is connected to the internet, it can  use a browser (such as Firefox, Google Chrome, or Microsoft Edge) to open an HTML file stored on a remote server.

The computer used to run a browser that reads an HTML file from a server is referred to as a “client” computer, or simply a “client”.  In this writing “client” will refer to a computer using a browser to view an HTML file; “server” will refer to a computer running an internet server program.  

Clients and Servers are both computers capable of running computer programs.  One of the primary purpose of this memo is to make clear to readers what browsers  do and how this differs from what internet server programs do.

A browser is a program capable of interpreting an HTML file and displaying the result on its display screen (i.e. on the computer monitor).  A browser runs on the client computer.   If the HTML file is on a server then the browser must first download the HTML file from the internet server.   This process uses the internet to copy the file. After getting a copy of the HTML file, the browser displays whatever the HTML file is setup to display.  So, note well,  most of the work to display a web page is done by the client  computer. If many client computers are viewing the same web page at the same time, the severer is not involved in the display process.  The only function of the internet server is to support transferring the HTML file to the client machine.  The remainder of the processing is done by the client machine.

An HTML file can contain JavaScript code statements.   JavaScript is a programming language.  When a browser processes an HTML file it can run the JavaScript programs stored in the HTML file.    Here again, the work is being done by the client computer, not the server.   JavaScript programs run on the client machine

A browser running on one computer can communicate with a browser running on another computer by using a server as a middleman.  Browsers cannot talk to other browsers without using a program running on a server.    This process is described in a separate memo titled "Web pages that use a program running on a server".