COMP249 Week 1

Steve Cassidy and Rolf Schwitter

COMP249 -- Web Technology

A Brief History of the Web

Prehistory

  • Mid 1960s - ARPAnet planning and design of packet switched data networks
    • US. Department of Defense
    • The nework was designed for researchers on defense-related contracts
  • 1969 - Four node ARPAnet network commissioned - the first node was at UCLA
    • The primary erarly use - text-based emails
  • 1972 - Ray Tomlinson of BBN adapts email software to ARPANET, introduces the @ sign
  • 1973 - First international connections to ARPAnet; idea for the Ethernet; start of the inter-networking research.
  • 1975 - First ARPAnet mailing list, MsgGroup
  • 1979 - Kevin MacKenzie suggests showing emotion in email with -), Scott Fahlman later suggests :-) and :-(

Source Hobbes' Internet Timeline

A Brief History of the Web

Prehistory

  • 1980-82 - Establishment of BITNET, CSNET, EUnet, SATNET, PACNET...networks are connected to form an internet
  • 1983 - TCP/IP becomes the standard transport protocol. Name server developed at Univ of Wisconsin, no longer requiring users to know the exact path to other systems.
  • 1988 - Internet Worm affects 6,000 of the 60,000 hosts on the Internet.
  • 1989 - AARNET established, first link between Australia and NSFNET via Hawaii on 23 June. Australia had been limited to USENET access since the early 1980s
  • 1990 - ARPANET is turned off

A Brief History of the Web

  • 1991 - Tim Berners-Lee of CERN releases the World Wide Web
  • 1993 - Mosaic graphical web browser released
  • 1994 - Canter & Siegel send the first spam (offering US Green Cards). WWW is the second most popular service on the Internet. First banner ad on hotwired.com
  • 1995 - Netscape goes public, offers free browser, Alta Vista search engine launced, Steve Cassidy, Computing and Macquarie University on the web.
  • 1996 - The Browser Wars - Microsoft vs. Netscape
  • 1998 - Google Inc formed in a garage in Menlo Park, California
  • 2001 - COMP249 offered by the Computing Department

What is the World Wide Web?

  • That part of the Internet which uses the HTTP protocol
  • A collection of hypertext documents served by computers on the Internet
  • Defined by the technologies:
    • TCP/IP - Low level message protocol
    • HTTP - Hypertext Transfer Protocol
    • URL - Uniform Resource Locator
    • HTML - Hypertext Markup Language

TCP/IP

  • Transmission Control Protocol/Internet Protocol
  • Standard low-level protocol since 1982
  • Point-to-Point communication between computers
  • Computer addresses: IP Numbers
    • Unique 32 bit number expressed as four 8 bit numbers - IPv4
    • Eg. 192.168.1.2, 137.111.158.22
    • How many IP numbers are there? (2^32 = 4,294,967,296)
    • IPv6 - 128 bits for an IP address
    • Layered on this is the Domain Name System (DNS)
      • Translate IP numbers to a hierarchical domain namespace
      • Eg. science.mq.edu.au, www.nasa.gov, gmail.com

HTTP

  • Hypertext Transfer Protocol

  • HTTP consists of two phases - the request and response.

  • Each communication between a browser and a Web server consists of two parts, a header and a body.

    • The header contains information about the communication

    • The body contains the data of the communication if any

HTTP

Request:

HTTP-Method Resource HTTP/version
Header fields
<Blank line>
Message

For example:

GET /storefront.html  HTTP/1.1
Accept: text/*

HTTP

Response:

Status line
Response header fields
<Blank line>
Response body

For example:

HTTP/1.1  200 OK

<html>
...etc...

HTTP Verbs

  • GET -- return the contents of some resource

  • HEAD -- return just the header information for a resource

  • POST -- Submit data to a resource or program

  • PUT -- create a new resource or replace an existing one

  • DELETE -- delete a resource

Uniform Resource Locators: URL

A URL is a name for a resource which contains information about how to acquire the resource.

<scheme>:<scheme-specific-part>

For the HTTP scheme:

http://<net_loc>/<path>;<params>?<query>#<fragment>

Examples:

http://www.comp.mq.edu.au/units/comp249/assignments.html
http://www.comp.mq.edu.au/units/comp249/cgi-bin/echo.py?name=steve
http://www.comp.mq.edu.au/units/comp249/assignments.html#assesment
ftp://box.comp.mq.edu.au/pub/incoming/uploaded.zip
nntp://news.mq.edu.au/comp.lang.tcl/ax7529s82008     

Reference: Cool URIs don't change.

Hypertext Markup Language: HTML

  • Hypertext: documents which link to other documents and multimedia resources

  • Markup: HTML adds information to text to encode function, appearance and behaviour. It's an example of a markup language like XML, SGML, LaTeX and RTF.

  • Not all documents on the Web are HTML documents. HTTP can be used to transmit images, video: any kind of electronic data.

  • Versions of HTML:

    • HTML 4.01

    • XHTML 1.0

An HTML Example

<!DOCTYPE HTML PUBLIC  "-//W3C//DTD HTML 4.01//EN" >
<html>
  <head>
    <title>COMP249 Basic HTML Page Structure</title>
  </head>

  <body>
    
    <h1>COMP249 Basic HTML Page Structure</h1>

    <p>This is a paragraph, you know what a paragraph is don't you?</p>


    <h2>Some Detail</h2>

    <p>This document contains a header which was encoded in the HTML
    source using the &lt;h1&gt; tag. Note how I wrote that in the
    source, it's an example of the need for <em>entities</em> in
    HTML.</p>

    <hr />

    <p>Copyright &copy; Steve Cassidy, 2004 </p>

  </body>
</html>     

Web Browsers

Web Design

  • Visual Design

  • User Interface Design

  • Information Architecture

Nielsen's Guidelines

From Jakob Nielsen's guidelines for good Home Page design:

  • Make the Site's Purpose Clear: Explain Who You Are and What You Do

  • Help Users Find What They Need

  • Reveal Site Content

  • Use Visual Design to Enhance, not Define, Interaction Design

Elements of Web Design

  • Site Navigation

    • Clear and consistent navigation structure

    • 'Two Clicks' rule

    • Provide a search facility

  • Response times

    • Large/many graphics slow down page loading

    • Complex server side processing can be slow

    • 0.1 second is instantaneous, 1 second is quick, 10 seconds should be the limit.

Elements of Web Design

  • Hypertext Links

  • Images

    • Use images optimised for web delivery: compressed, reduced colour palette.

    • Use thumbnails which link to larger images where possible.

    • Re-use images for page design.

Reading