You are on page 1of 10

CHAPTER 1

Getting familiar with HTML and Web Page Basics

In this chapter

Basic web terminologies


History of internet and world wide web
Common means of accessing the web
Webpage in their natural habitat
Anatomy of a web address

This chapter introduces you with some general information about the Internet and World Wide
Web; this will lay a foundation of useful knowledge to help you as you begin to create your own
web pages with HTML and CSS. This chapter wont be a comprehensive overview by any means,
but it will get you up to speed on some of the terminology and concepts youll need to be familiar
with throughout the rest of this book.

Internet Basics
The Internet is a worldwide collection of interconnected computer networks that enables
businesses, organizations, governments, and individuals to communicate in a variety of ways. One
of the most popular ways users communicate on the Internet is by publishing and interacting with
Web pages. You can also use the Internet to send and receive e-mail, chat with other users, and
transfer files between computers.
Web Terminology
Computer Network, often simply referred to as a network, is a collection of computers and
other hardware components interconnected by communication channels that allow sharing
of resources and information.
World Wide Web (WWW) or simply called Web is a collection of resources and
information interconnected via the internet.
Web page is a formatted page within a website that may contain text, graphics, video
and multimedia. This page can be can be viewed and explored on the internet by the use
of a program called web browser.
A home page is the first page presented when a user selects a site or presence on the
World Wide Web. This page usually provides information about the web site, its purpose
and contents.
Some sites use "splash page" to mean the home page itself, especially where it contains
attention-capturing visual or multimedia effects (creating a "splash").

NOTE: The terms Internet and World Wide Web are often used interchangeably; however,
the internet and World Wide Web are not one and the same.
The Internet is a vast hardware and software infrastructure that enables computer
interconnectivity. The Web, on the other hand, is a massive hypermedia database, a myriad
collection of documents and other resources interconnected by hyperlinks. Imagine the World
Wide Web as the platform which allows one to navigate the Internet with the use of a
browser such as Internet Explorer or Mozilla Firefox.
History of Internet
The Internet has its history anchored on the
project started by the United States
Government called DARPA (Defense
Advanced Research Projects Agency) an
agency of the US Department of Defense
for the development of new technology for
military use which was established in 1958.
The original name of this agency was
simply ARPA (Advanced Research Projects
Agency).
Figure 1.1. DARPA Headquarters at 3701 N.
Fairfax Drive in Arlington, Virginia, USA

Its the cold war and the US government


had a problem; if we have a nuclear war
how are we going to maintain communications? If one city is destroyed on the US eastern
seaboard, all communications in the east will be lost. A US military agency called
Advanced Research Projects Agency (ARPA) was charged with solving the problem. They
devised a communication system that would still work if one or more "nodes" of the system
were destroyed. A kind of communications web, that if one link of the web was broken,
information could flow around the broken link to get to its final destination.
Later, in 1969, ARPA linked university computers and researchers to the network to assist
them in conducting basic research through information sharing. This project became known
as the ARPAnet. In 1977 ARPAnet engineers realized that the new communications network
was going to grow into something much larger than originally anticipated so new
communication technology would be required. They devised a communication protocol
known as TCP/IP, or transmission control protocol/internet protocol. TCP/IP remains the
fundamental way computer file are moved around the Internet today.
Under TCP/IP a file is broken into smaller parts called "packets" by the file server. Each
packet is assigned an IP (Internet protocol) address of the computer it has to travel to. As
the packet moves through the network it is "switched" by a number of servers along the
way toward its destination. The IP address tells those servers which way to switch the
packet. Each time the packet is switched a "wrapper" is added to the packet this way
we can tell how many computers and which computer handled the file while it was in tran
sit. In Australia, a file coming from the States can be switched up to 15 times, that is
fifteen computers were required to deliver the packet to the destination computer.

Figure 1.2. Packet switching in data network


The packets do not necessarily travel together on the Internet. Packets from the same file
may travel via different paths through different servers, but toward the same destination.
Packaging technology allows us to use limited bandwidth most efficiently. It means parts
of a file can be shared across a number of phone lines instead of having to find one
phone line to put a large file into. In this respect TCP/IP can be liken to a group of 10
hitchhikers (packets) who cannot get a lift all together, but easily get lifts if they break up,
going by different cars and maybe by different roads but agree to meet up at a
particular point in the future.
On January 1, 1983, all of the ARPAnet was switched to TCP/IP and became what is now
known as the Internet. The US National Science Foundation (NSF) funded most of the early
development of the Internet, but on April 30, 1995, the U.S. government released the
Internet to commercial networks and service providers and shut down the old National
Science Foundation backbone.
History of World Wide Web
The World Wide Web was started in 1989 by English
physicist Sir Tim Berners-Lee. An organization called
Word Wide Web Consortium (W3C) at MIT
(Massachusetts Institute of Technology) founded and still
headed by Lee and participated in by several companies
who are willing to create standards and ways to improve
the quality of the Web. W3C aims to provide access to
the World Wide Web on the principle of no patent, no

Figure 1.3. Sir Tim Berners-Lee


started the WWW in 1989

royalty due and easily adoptable by everyone. W3C has set the standards for HTML,
XHTML, CSS and many other internet applications.
Types of Connections
Users connect to the Internet through a variety of methods. A relatively inexpensive
but slow way to connect is with dialup service, which involves using a modem and a
phone line. Faster ways to connect include DSL (digital subscriber line), cable
modem, satellite, and ISDN (Integrated Services Digital Network). Networks
include special wireless transmitters that allow computers to access the Internet
wirelessly. Companies that help you connect to the Internet are known as Internet
service providers, or ISPs.
Connection Speeds
Connection speeds play an important part in a users Internet experience because
slower connections result in slower file transfers and Web page viewing. Dialup
connections offer the slowest access to the Internet at up to 56 kilobits per second,
or Kbps, followed by ISDN connections at 64 to 128 Kbps. DSL usually offers
connection speeds of up to 3 megabits per second, or Mbps, while cable modems
can achieve speeds of up to 6 Mbps. A Web page that takes about 20 seconds to
download via dialup can take less than a second using a cable modem.

Web Pages in Their Natural Habitat


Web pages can accommodate many kinds of content, such as text, graphics, forms, audio
and video files, and even interactive games. Browse the Web for only a moment, and you
see a buffet of information and content displayed in many ways.
Every Web site is different, but most have one thing in common: the Hypertext Markup
Language (also known as HTML). Youll also run into Extensible Hypertext Markup
Language (XHTML) and Cascading Style Sheets (CSS) pretty regularly, too. Whatever
information a Web page contains, every Web page is created using HTML. HTML is the
mortar that holds Web pages together; graphics, content, and other information are the
bricks; CSS tells Web pages how they should look when on display.
HTML files that produce Web pages are just text documents, as are XHTML and CSS files.
This use of text documents is why the Web works as well as it does. Text is a universal
language for computers. Any text file you create on a Windows computer including
any HTML, XHTML, or CSS file works equally well on a Mac or any other operating
system. But Web pages arent merely text documents. Web pages are made with special,
attention-deprived, sugar-loaded text called HTML, XHTML, or CSS. Each uses its own
specific set of instructions that you include (along with your content) inside text files to
specify how a page should look and behave.
NOTE: For the most part, HTML is platform independent, which means you can view Web
pages on any computer operating system, including Windows, Mac, and Linux.

Hypertext
Special instructions in HTML permit lines of text to point (that is, link) to something else in
cyberspace. Such pointers are called hyperlinks. Hyperlinks are the glue that holds the
World Wide Web together. In your Web browser, hyperlinks usually appear in blue and
are underlined. When you click a hyperlink, it takes you somewhere else. Hypertext or
not, a Web page is a text file, which means you can create and edit a Web page in any
application that creates plain text (such as Notepad or Notepad++).

Figure 1.4. spsormoc.com uses hyperlinks to help visitors find information


Web browsers were created specifically for the purpose of reading HTML instructions
(known as markup) and displaying the resulting Web page. Markup lives in a text file
(with your content) to give orders to a browser. For example, look at the page shown in
Figure 1.5. You can see how the page is made up and how it is formatted by examining
its underlying HTML.

Figure 1.5. To achieve its present good looks, this Web page incorporates multiple parts
and numerous bits of HTML and CSS markup
This page includes an image, a heading that describes the page, several paragraphs of
text about one of your authors, and an address block with links to a rsum and a list of
publications.
However, different components of the page use different formatting:
9 The heading at the top of the page is larger than text in the paragraphs.
9 Blocks of text are separated by more blank space than between contiguous lines
of text within blocks.
9 Some text is in white, some orange, and some light blue.
The browser knows to display these components of the page in specific ways thanks to the
HTML markup, shown in Figure 1.6.
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta http-equiv=Content-Type content=text/html; charset=UTF-8 />
<title>Ed Tittel - Edtittel.com</title>
<style type=text/css>
body {

Figure 1.6. Ed Tittels About Me Web Page

background-image: url(images/background_page.gif);
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .9em;
line-height: 1.3;
color: #FFF;
margin: 0px;
padding: 0px; }
#container{
width: 794px;
margin: 0px auto; }
#headerGraphic{
background-image: url(images/header.gif);
;
width: 794px;
height: 160px; }
b {
font-weight: bold;
}
h2 {
font-weight: bold;
font-size: 1.5em;
color:#96CDFF;
border-bottom: 1px solid white; }
h1 {
font-weight: bold;
font-size: 1.2em;
color:#96CDFF; }
ul{
list-style-type: none;
margin: 0px;
padding: 0px; }
a:link {
font-weight : bold;
text-decoration : none;
color: #FF7A00;
background: transparent; }
a:visited {
font-weight : bold;
text-decoration : none;
color: #91a3b4;
background: transparent; }
a:hover {
color: #FA0000;
background: transparent;
text-decoration : underline; }
a:active {
color: #494949;
background: transparent;
font-weight : bold;
text-decoration : underline; }
</style>
</head>
<body>
<div id=container>
<!-- Top graphic of Ed and title -->
<div id=headerGraphic></div>
<!-- Header text -->
<h2>About me</h2>
<!-- Paragraphs -->
<p>Ed Tittel has been working in and around the computer industry since the
early 1980s, at which point he left academia to work as a programmer. After
seven years of writing code and managing development projects, he switched
to the softer side of the industry in pre-sales technical and marketing
roles. In the period from 1981 to 1994 he worked for 6 companies that
included Information Research Associates, Burroughs, Schlumberger, and
Novell.</p>
<p>Ed started writing about computing subjects in 1986 for a Macintosh
oriented monthly magazine. By 1989 he had contributed to such publications

Figure 1.6. (continued)

as LAN Times, Network World, Mac World, and LAN Magazine. He worked on his
first book in 1991, and by 1994 had contributed to over a dozen different
titles.</p>
<p>Ed has been freelancing full-time since 1994, with two
brief stints of other employment interspersed therein (1987-8 at Tivoli,
and 2006 at NetQoS, Inc.). He has contributed to over 140 computer
books, including numerous ...For Dummies titles, college textbooks,
certification preparation materials, and more. These days, Ed revises an
occasional book, writes for Toms Hardware, TechTarget, and ITExpertVoice,
and teaches online courses for large corporations such as HP.</p>
<p>To learn more about Eds professional history, please
read his <a href=bio.htm>professional bio</a>.</p>
<!-- Subtitle text -->
<h1>Contact:</h1>
<!-- List -->
<ul>
<li><b>Email:</b> etittel at yahoo dot com</li>
<li><b>Address:</b> 2443 Arbor Drive, Round Rock, TX 78681-2160</li>
<li><b>Phone:</b> 512-252-7497 (No solicitors, please)</li>
<li>List of publications available in: <a href=docs/v_et.doc
target=_blank>MS Word</a></li>
<li>Resume available in: <a href=docs/Resu-et13.doc target=_blank>
MS Word</a></li>
</ul>
</div>
</body>
</html>

Figure 1.6. (continued)


Any text enclosed between angle brackets (less-than and greater-than signs: < >) is an
HTML tag (often called the markup). For example, a p within brackets (<p></p> tags)
identifies text inside paragraphs. The markup between <style> and </style> tags at the
head of the file uses CSS to define the look and feel for various HTML elements used on
this page. Thats really all there is to it. You embed the markup in a text file, along with
text for readers to view, to tell the browser how to display your Web page.
NOTE: Tags and the content between (and within) the tags are collectively called elements.
Angle brackets < > enclose HTML and XHTML markup, curly braces { } enclose CSS markup.

Browsers
Web browsers read instructions written in HTML, XHTML, and CSS, and use those
instructions to display Web page content on your screen. You should always write your
HTML with the idea that people will view the content using a Web browser. Just remember
that theres more than one kind of browser out there, and each one comes in several
versions. Usually, Web browsers request and display Web pages available via the
Internet from a Web server. You can also display HTML pages youve saved on your own
computer before making them available on a Web server on the Internet. When youre
developing your own HTML pages, you view these pages (called local pages) in your
browser. You can use local pages to get a good idea of what people see after the page
goes live on the Internet. Each Web browser interprets HTML in its own way. The same
HTML may not look exactly alike from one browser to the next.
NOTE: HTML is not a programming language, it is a markup language

Web servers
Your HTML pages arent much good if you cant share them with the world. Web servers make
that possible. A Web server is a computer that
9 Connects to the Internet
9 Runs Web-server software
9 Responds to requests from Web browsers for Web pages
Almost any computer can be a Web server, including your home computer. But Web servers
generally are computers dedicated to the task. You dont need to be an Internet or computer guru
to publish your Web pages, but you must find a Web server to serve your pages:
9 If youre building pages for a company Web site, your IT department may have a Web
server.
9 If youre starting a new site, you need a host for your Web pages.
Finding an inexpensive host is easy all it takes is a simple Google search. One inexpensive
host is GoDaddy (www.godaddy.com), with current monthly fees as low as $1.99 a month. You
can even find free hosts for your Web site with a little effort. Free Web Hosts maintains a list of
free host providers. Check them out at www.free-webhosts.com.

Anatomy of a Web Address


The Web is made up of billions of resources, each of them linkable. A resources exact location is
the key to linking to it. Without an exact address (a Uniform Resource Locator, or URL), you cant
use the Address bar in a Web browser to visit a Web page directly. URLs are the standard
addressing system for Web resources. Each resource (Web page, site, or individual file) has a
unique URL. URLs work a lot like your postal address. Consider the web address

http://www.googleguide.com/searchEngines/google/searchL
eader.html.
Heres what it all means:
http
www.googleguide.com
googleguide
com
searchEngines
google
searchLeader
html

transfer protocol (type of information being transferred)


website name, host name
second-level domain name
top-level domain name
directory name (major category)
sub-directory name (sub-category)
file name (a file within the directory)
file format

Heres a list of some common top-level domain names. Note that some sites dont follow these
conventions:
.edu
.com
.gov
.mil
.net
.org

educational site (usually a university or college)


commercial business site
U.S. government/non-military site
U.S. military sites or agencies
networks, Internet service providers, organizations
non-profit organizations and others

Because the Internet was created in the United States, US was not originally assigned to U.S.
domain names; however, its used to designate American state and local government hosts,
including many public schools, and commercial entities, e.g., well.sf.ca.us. The domain .ca
represents Canada, unless its followed by .us, in which case it represents California.
Domain Codes
.ca.us
.nv.us
.tx.us

State
California
Nevada
Texas

Other countries have their own two letter codes as the top level of their domain names
although many non-US sites use other top-level domains (such as .com):
Domain Codes
.ca
.de
.dk
.jp
.il
.uk
.za

Country
Canada
Germany
Denmark
Japan
Israel
United Kingdom
South Africa

To limit results to a single site or domain, specify the site name (e.g., www.googleguide.com or
googleguide.com) or a top-level domain name (e.g., .com or .edu) in Googles domain selector.

You might also like