Download presentation
Presentation is loading. Please wait.
Published byElvin Lindsey Modified over 8 years ago
1
CompSci 001 2.1 Today’s topics Networks & the Internet Basic HTML ä The basis for web pages ä “Almost” programming Upcoming ä Connections ä Algorithms Reading Internet history readings Great Ideas Chapters 1 Computer Science, Chapter 4
2
CompSci 001 2.2 Networks l Need to communicate. How to do it? ä Robustly, efficiently, securely l Classifications ä LAN vs. WAN ä Closed (proprietary) vs. Open l Topologies
3
CompSci 001 2.3 The Internet l Network of networks ä Connect networks through routers and bridges ä I nternet: Started by DARPA in 1973
4
CompSci 001 2.4 The World Wide Web l Servers disseminate hypertext documents ä Hypertext is text with a link or reference ä Uniform resource locator (URL): unique address of data on web l HyperText Markup Language (HTML) is a common formatting language for the web ä Tags are non-printing formatting markers Identified by angle brackets (i.e. ) Example: The Human Tornado Come in delimiting pair l General Goals Platform independent Text Specification (also called a Markup Language) ä Links to other network resources
5
CompSci 001 2.5 Delimiting with tags l First tag says, “Begin mode” l Second tag (containing “/”) says, “End mode” So The Human Tornado means 1. Begin title mode 2. The text “The Human Tornado” is in title mode 3. End title l Using this construct, we can nest several different modes and have interesting behavior l Good tutorials on HTML http://www.w3.org/MarkUp/Guide/ http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html http://www.w3schools.com/html/ l In lab, you will create a webpage
6
CompSci 001 2.6 HTML l Some General HTML rules For tags, case doesn’t matter, e.g., = ä In the text, spaces don’t matter: it will decide! (we call that “free format”) starts a new line l Headings Use to specify heading where smaller n designates more important heading For example - - - is largest, boldest heading - - - designates a fairly minor heading
7
CompSci 001 2.7 HTML l Basic Web Page Structure Ted’s Home Page Ted’s Page Welcome to Duke University! more to come …
8
CompSci 001 2.8 HTML l Want to link things together! l Hypertext (from the Webopedia) ä A special type of database system, invented by Ted Nelson in the 1960s, in which objects (text, pictures, music, programs, and so on) can be creatively linked to each other. l An anchored link: The Duke Web Page http://www.duke.eduThe Duke Web Page Produces link to URL specified in HREF and display info between tags: The Duke Web Page The Duke Web Page
9
CompSci 001 2.9 HTML l Other useful info ä For italics or emphasis use or For darker or bold use or ä For text space exactly as typed ( not free format) use
10
CompSci 001 2.10 HTML l Specifying Colors ä Can be specified in different ways e.g., for standard colors can specify “white” or “red” ä Can specify arbitrary colors by specifying the amount of red, blue, and green involved. (RGB) ä Uses base 16 arithmetic: 0, 1, …, 9, a, b, c, d, e, f Red: “ ff0000 ” Green: “ 00ff00 ” Blue: “ 0000ff ” Black: “ 000000 ” Gray: ”7f7f7f” White:” ffffff ” Yellow: ” ffff00 ” Orange: “ ff7f00 ” Purple: ” c000e0 ” ä Can experiment!
11
CompSci 001 2.11 HTML l More useful HTML ä Bulleted list … – for items - - - ä Ordered list … 1.- - - 2.- - - 3.- - - ä Can nest arbitrarily deep - - lists within lists l Tables Cell 1 Cell 2 Cell 3 Cell 4 produces simple table l Images http://www.cs.duke.edu/~f orbes/construct.gif displays image
12
CompSci 001 2.12 HTML/Web/UNIX practice l In UNIX, your web page folder is found in a standard location: ä ~userID/public_html/ and for OIT Duke files is accessed with a web browser at ä //www.duke.edu/~userID l Many people don’t code in raw HTML ä Save as Web Page in Microsoft Word ä Netscape Composer, Macromedia Dreamweaver, Bluefish l These all generate HTML for you l View other people’s web page source (HTML) from most browsers -- learn from others
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.