CSSE 290 Web Programming

Lecture 1: Internet/WWW

Reading: Ch. 1

Attribution:Except where otherwise noted, the contents of this document are Copyright 2012 Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.

Otherwise noted: Claude Anderson was given permission to modify the slides for CSSE 290 at Rose-Hulman by author Jessica Miller. The authors' original slides, based on Web Programming Step by Step, can be seen at http://webstepbook.com.
Some of the examples in some days' slides are from David Fisher at Rose-Hulman, who was kind enough to allow me to use them. My intention is to mark these examples with [DSF].

Valid HTML Valid CSS!

Lecture 1 Topics

Course Intro/Setup 1

Course Intro/Setup 2

Course Intro/Setup 3

Install Aptana Studio 3 Plugin for Eclipse

The update site to use within Eclipse is http://download.aptana.com/studio3/plugin/install.
Trying to access this URL directly in a web browser returns an Access Denied error.

  1. From Eclipse's Help menu, select Install New Software... to open the Install New Software dialog.
  2. Paste the URL for the update site into the Work With text box, and press the Enter (or Return) key.
  3. In the populated table below, check the box next to the name of the plug-in, and then click the Next button.
  4. Click the Next button to go to the license page.
  5. Choose the option to accept the terms of the license agreement, and click the Finish button.
  6. You may need to restart Eclipse to continue.

5-minute Break

We should have a break every class day, sometime near the middle of the two-class period

If you neeed help with Aptana installation, get help form an assistant or a fellow student.

1.1: The Internet

The Internet

The Internet
  • the Web is the collection of web sites and pages around the world; the Internet is larger and also includes other services such as email, chat, online games, etc.

Brief History of the Internet

People and Organizations

IETF ICANN W3C

Layered Network Architecture

The internet uses a layered hardware/software architecture (also called the "OSI model"): OSI model

Internet Protocol (IP)

Transmission Control Protocol (TCP)

1.2: The World Wide Web (WWW)

1.2: The World Wide Web (WWW)

Web servers and Browsers

Web Servers and Browsers

browser usage chart

Domain Name System (DNS)

Uniform Resource Locator (URL)

Advanced URLs

Hypertext Transport Protocol (HTTP)

Hypertext Transport Protocol (HTTP)

HTTP error codes

Internet Media ("MIME") types

Some Web Languages / Technologies


1Despite some naming, syntactic, and standard library similarities, JavaScript and Java are otherwise unrelated and have very different semantics. The syntax of JavaScript is actually derived from C, while the semantics and design are influenced by Self and Scheme programming languages.

2.1: Basic HTML

Today I'll mainly show you a few HTML basics.

Next time you'll spend most of the in-class time writing HTML.

Hypertext Markup Language (HTML)

Structure of an HTML Page

<!DOCTYPE html>
<html>
	<head>
		information about the page
	</head>

	<body>
		page contents
	</body>
</html>

Page title: <title>

describes the title of the web page

<title>Chapter 2: HTML Basics</title>

Paragraph: <p>

paragraphs of text (block)

<p>
Notice that the layout   of the
input text   makes     little diffference in a
paragraph.               The browser collapses multiple
spaces and treats line breaks as spaces.</p>

Headings: <h1>, <h2>, ..., <h6>

headings to separate major areas of the page (block)

<h1>University of Whoville</h1>
<h2>Department of Computer Science</h2>
<h3>Sponsored by Big Rich West-coast Corporation</h3>
<h6>We teach good stuff here!</h6>

Slides Not Shown in 2014-15 Class Session

Line Break: <br>

forces a line break in the middle of a block element (inline)

<p>Teddy said it was a hat, <br /> So I put it on.</p>
<p>Now Daddy's sayin', <br /> Where has
the toilet plunger gone?</p>
  • br should not be used to separate paragraphs or used multiple times in a row to create spacing

Nesting Tags

<p>
	HTML is <em>really,
	<strong>REALLY</em> lots of</strong> fun!
</p>

Phrase Elements : <em>, <strong>

em : emphasized text (usually rendered in italic)
strong : strongly emphasized text (usually rendered in bold)

<p>
	HTML is <em>really</em>,
	<strong>REALLY</strong> fun!
</p>

Unordered list: <ul>, <li>

ul represents a bulleted list of items (block)
li represents a single item within the list (block)

<ul>
	<li>The Fellowship of the Ring</li>
	<li>The Two Towers</li>
	<li>The Return of the King</li>
</ul>

More about unordered lists

<ul>
	<li>Simpsons:
		<ul>
			<li>Homer</li>
			<li>Marge</li>
		</ul>
	</li>
	<li>Family Guy:
		<ul>
			<li>Peter</li>
			<li>Lois</li>
		</ul>
	</li>
</ul>

Notice the proper nesting of tags (indentation makes it clearer)

Ordered list: <ol>

ol represents a numbered list of items (block)

<p>RIAA business model:</p>
<ol>
	<li>Sue customers</li>
	<li>???</li>
	<li>Profit!</li>
</ol>

HANDOUT ONLY
  • we can make lists with letters or Roman numerals using CSS (later)

Let's Make a Page!