This preview shows page 1-2-3-4-5 out of 16 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CompSci 4HTML Sep 1, 2005Prof. Susan RodgerCompSci 4 • Last time – How to start a web page, copy files to Duke account• Assignment 1 due Friday, Assignment 2 out• Today – Learn HTML– Use laptop cart– bring laptop if can• start Alice next week– Read Chapter 1 – Do reading quiz on blackboard• Multiple attempts• Must do before next class period startsBrowsers on the Web• First browser called “WorldWideWeb”– Hypertext browser/editor– Created in 1990 by Tim Berners-Lee at CERN– 1991 available on internet• Lynx– Textual browser, 1992, history– Lou Montulli, Charles Rezac, Michael GrobeCompSci 4 Web page in LynxOther Browsers•Mosaic– 1993, Univ of Illinois Urbana-Champaign– Last version in 1997• Netscape– 1994 by Jim Clark and Marc Andreessen– Hired most of Mosaic Engineers and Montulli (lynx)– history• Internet Explorer– 1995, first version attached to Windows 95, not very popular– historyHow do These Browsers view the same info?• Standards–Html– Figure formats (gif, jpeg, tiff)– Scripts (javascript, cgi)• Plug-ins– Program provided by companies that are run when specific file is downloadedURLS• Uniform Resource Locator• Address of location of a web site or other Internet service• Organized first by protocol – http, mailto, ftp, file• Organized next by domains– .com, .edu, .org, country (.it, .fr, .de)• Organized finally by directory on specific machineAn HTML file• Write HTML commands in a file – use Notepad• File should have .html extension• View file with browser– Save file and check oftenHTML tags• First tag “<“ says, “Begin Mode”• Second tag “>” (has “/”), says “End Mode”• <title>Flavor of the Week </title> means– Begin title mode– “Flavor of the Week” is in title mode– End title• Can nest several modesHTML• Some General HTML rules– For tags, case doesn’t matter• <html> = <HTML>– In the text, spaces don’t matter (free format)– <br> starts a new line• Headings–Use <hn> for heading size, the smaller n, the larger the heading– <h1> … </h1> is largest heading– <h4> … </h4> is minor headingHTML –Basic Page Structure<html><head><title> Susan’s Web Page </title></head><body bgcolor=“white”><center><h1> Susan’s Web Page </h1></center><p> I love to bake cookies and cakes!</body></html>HTML• Add links<a HREF=http://www.duke.edu> The Duke web page </a>• Italics or emphasis– <i> or <em>• Darker or bold use– <strong> or <b>• Text space exactly as typed– <pre>HTML – specifying colors• Can be specified in different ways• Standard colors, “white”or“red”• Arbitrary colors, specify amount of red, blue and green involved (RGB)• Uses base 16 arithmetic: 0, 1, …,9, a, b, ..fRed: ff0000 Green 00ff00 Blue 0000ffYellow: ffff00 Gray 7f7f7f White ffffffBlack 000000 Orange ff7f00 Purple c000e0Can experiment!HTML - Lists• Bulleted list<ul> <li> item in list</ul>• Ordered list<ol><li> first item in list<li> second item in list</ol>• Can nest arbitrarily deep – lists within listsHTML – Tables and Images• Tables – produces simple table<table border=1><tr> <td> cell 1 </td> <td> cell2 </td> </tr><tr> <td> cell 3 </td><td> cell 4> </td> </tr></table>• Images – displays an image<img src=http://www.cs.duke.edu/~rodger/shrfun.gif>Classwork - Create a Web page• Create a web page – complete by Sept. 8• Work in pairs• Use notepad to create file with HTML • Look at file with browser• Copy file to your Duke OIT account• View your file on the


View Full Document

Duke CPS 004 - HTML

Documents in this Course
Lecture

Lecture

18 pages

Chapter 7

Chapter 7

18 pages

Chapter 9

Chapter 9

15 pages

Java 1

Java 1

24 pages

Java 3

Java 3

11 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

28 pages

Chap 2

Chap 2

16 pages

Graphics

Graphics

20 pages

Lecture

Lecture

12 pages

Java 1

Java 1

6 pages

Chapter 4

Chapter 4

16 pages

The Plan

The Plan

25 pages

Lecture

Lecture

16 pages

Chapter 6

Chapter 6

21 pages

Lecture

Lecture

18 pages

Lecture

Lecture

23 pages

Lecture

Lecture

16 pages

Lecture

Lecture

19 pages

Lecture

Lecture

12 pages

Lecture

Lecture

5 pages

Lecture

Lecture

26 pages

Lecture

Lecture

16 pages

Chapter 7

Chapter 7

23 pages

Lecture

Lecture

21 pages

Lecture

Lecture

4 pages

Lecture

Lecture

4 pages

Lecture

Lecture

8 pages

Lecture

Lecture

4 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

32 pages

Java

Java

4 pages

CompSci 4

CompSci 4

18 pages

Lecture

Lecture

26 pages

CompSci 4

CompSci 4

12 pages

HTML

HTML

17 pages

Lecture

Lecture

16 pages

Chapter 5

Chapter 5

22 pages

Lecture

Lecture

4 pages

Chapter 4

Chapter 4

10 pages

Chapter 2

Chapter 2

15 pages

Chapter 8

Chapter 8

14 pages

Lecture

Lecture

15 pages

Load more
Download HTML
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view HTML and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view HTML 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?