1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
HTML Basics Customizing your site using the basics of HTML.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Chapter 16 The World Wide Web.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Chapter 16 The World Wide Web. 2 The World Wide Web (Web) is an infrastructure of distributed information combined with software that uses networks as.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
Chapter 16 The World Wide Web Chapter Goals ( ) Compare and contrast the Internet and the World Wide Web Describe general Web processing.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Understanding HTML Code
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Chapter 16 The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Nell Dale & John Lewis (adaptation by Michael Goldwasser) The World Wide Web.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Chapter 8 Introduction to HTML and Applets
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Marking Up with XHTML Tags describe how a web page should look
Warm Handshake with Websites, Servers and Web Servers:
COMPUTING FUNDAMENTALS
Marking Up with XHTML Tags describe how a web page should look
Chapter 16 The World Wide Web.
Introduction to HTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing

2 Overview/Questions –Is it the Internet or the World Wide Web. What’s the difference? –How do you visit a web site? –How does your browser know what to do? –How does the web page show up on the screen? –Some background about files and file systems –Main idea: developing a web page

3 Internet or WWW? The Internet is like hardware… The World Wide Web is like software… The Internet is a prerequisite for the World Wide Web.

4 The World Wide Web A system of interlinked hypertext documents and other resources (e.g. images) accessed via the Internet. The WWW was conceived of and first implemented by Tim Berners-Lee, circa

5 The World Wide Web A system of interlinked hypertext documents and other resources accessed via the Internet. Uniform Resource Locator (URL) A standard way of specifying the location of a resource, it’s name, and how to get it. Example:

6 Displaying a WWW Page Figure 16.1 A browser retrieving a Web page How do you “visit a website”?

7 Displaying a WWW Page –Browser decodes URL to parse out host name and document location. –Browser makes network connection to server. –Client requests resource, and waits for the server to respond (using the hypertext transfer protocol). –Browser parses the response, requests any embedded data, and formats/displays output.

8 Protocol A protocol is a standard way of doing something. Hyper Text Transfer Protocol (HTTP) specifies how to request and deliver content (e.g. web pages).

9 Hyper Text Transfer Protocol HTTP is a protocol which specifies requests and responses between clients and servers. It assumes/builds upon: –The Internet exists/computer is connected –Reliable transport of data –Web servers are waiting to service clients HTTP is not limited to web pages -- It can be used to transfer any kind of data.

10 Mark Ups Figure 16.2 A marked-up document

11 HyperText Markup Language Markup language A language that uses tags to annotate the information in a document. Tags The syntactic elements in a markup language that indicate how information should be displayed. HyperText Markup Language (HTML) The language used to describe how to display the content of a Web page.

12 Hypertext Markup Language The HTML document defining the cheesy Student Dynamics Web page

13 Hypertext Markup Language The very cheesy version rendered by the web browser

14 Many HTML sources are a mess

15 Backgrounder: Files and Directories Pictured: Windows Explorer (left) and Finder (right), showing directories and files stored on a computer.

16 Backgrounder: Files and Directories File A named collection of related data, used for organizing secondary storage (e.g. on disk) Directory (a.k.a. Folder) A named group of files. Path (a.k.a. filename or directory) A logical name used to identify a location in a file system.

17 Directory Trees Recall that a directory is a named group of files. A directory can also have subdirectories. It’s easy to visualize this as a hierarchical tree: text alcohol.txt jane.txt … / Directory Files Directory

18 Directory Trees Directory tree A logical view of the nested directory organization of a file system. Each directory is a branch, and each file is a leaf. Root directory The directory at the highest level. Every directory descends from the root. Parent directory Every directory has a parent, up to the root. Subdirectory A directory contained within another directory.

19 A Windows Directory Tree An Example of the Windows directory tree.

20 A Unix (Mac) Directory Tree An Example of a UNIX directory tree; Mac OS is based on BSD UNIX.

21 Path Names Absolute Path A path that begins at the root and includes all successive subdirectories. Examples: C:\text\mypoem.txt(Windows) /Users/jmagee/mypoem.txt (Mac) /home/grad3/mageejo/mypoem.txt(Linux)

22 Path Names Present Working Directory The default/current path used by a program or user. Relative Path A path name that begins at the present working directory. Example: If present working directory is /home/grad3/mageejo Then the relative path mypoem.txt is sufficient.

23 File Types File Type Describes the kind of information contained in a file. File extension Part of a file name that indicates the type File names are often in two parts: <filename>.<extension>

24 File Extensions Some common file types and their extensions. Microsoft pioneered the 8.3 filename standard. Why give file names different extensions? What is the benefit to the user? For more info, see

25 Rendering a Web page After download, the browser renders the HTML into a graphical display. –HTML is a free-form language –Considers width and height of the browser window –Incorporates images, HTML tags, etc. –Browsers are inconsistent!

26 Review: HTML Markup language A language that uses tags to annotate the information in a document. Tags The syntactic elements in a markup language that indicate how information should be displayed. HyperText Markup Language (HTML) The language used to describe how to display the content of a Web page.

27 Hypertext Markup Language Tags are enclosed in angle brackets ( ) Words such as HEAD, TITLE, and BODY are called elements and specify the type of the tag. Tags are often used in pairs, with a start tag such as and a corresponding end tag with a / before the element name, such as.

28 Hypertext Markup Language Tags/Elements: -- denotes start/stop of HTML document -- denotes start/stop of HTML document -- denotes start/stop of document title -- denotes start/stop of document title -- denotes start/stop of document body -- denotes start/stop of document body -- denotes start/stop of comments -- denotes start/stop of comments Some tags allow additional properties to be specified, e.g. BGCOLOR, TEXT, etc.

29 Hypertext Markup Language Tags/Elements: -- creates a paragraph space -- creates a paragraph space -- creates a line break -- creates a line break -- creates a heading font (also, try,…) -- creates a heading font (also, try,…) -- creates bold text -- creates bold text -- creates italicized text -- creates italicized text -- centers the text between the tags -- centers the text between the tags

30 Hyperlinks Hyperlinks are created using the HTML tag. The HREF property gives a URL for the link. Example: This a link to This a link to Clark University’s web site. Having interlinked pages is what makes it a web!

31 Images in HTML Documents Images are stored in separate files. The tag inserts an image into a web page. Example:

32 Image Files Images are stored in their own files: –Popular formats include: GIF, JPG, PNG, … –Example: CU_Logo_White_Large.png The SRC attribute of the IMG tag gives the filename of the image file. –Relative path: filename is relative to the location of the HTML document (e.g. in same directory/folder). –Absolute path: filename is an absolute location (e.g. URL or file system location).

33 Images Tag Attributes IMG tag can customize the appearance of the image using these attributes: –SRC : gives the source location of image file –ALT : text to display if image not available –BORDER : how many pixels of border –HEIGHT : how many pixels tall –WIDTH : how many pixels wide

34 Describing List Data Describe list items with tag. Unordered (Bulleted) List –Wrap list items in and tags Ordered List –Wrap list items in and tags

35 List Example Suppose we want to create a list of our favorite sports teams. Two examples:

36 Describing Table Data A table is a set of rows of data. Each row has a number of fields. Example: Let’s take a poll of people’s favorite drinks, and display rows with results.

37 Describing Table Data describe the start/stop of the table data. describe the start/stop of the table data. describe start/stop of a row of data witin the tale. describe start/stop of a row of data witin the tale. describe the start/stop of table data items within a row. describe the start/stop of table data items within a row.

38 Table Example

39 Java Applets First, Create a Java Archive (.jar) file: First, Create a Java Archive (.jar) file:

40 Java Applets Include this tag in your HTML Include this tag in your HTML The archive attribute must match the name of your.jar file The archive attribute must match the name of your.jar file The code attribute must match the name of your.class file The code attribute must match the name of your.class file Place both your.jar and the objectdraw.jar in the same folder Place both your.jar and the objectdraw.jar in the same folder <applet archive="cs120demo.jar" code="cs120demo.class" width=400 height=400>

41 Take-Away Points –Internet, World Wide Web –Browser –Protocol –HTTP –Files, directories, filenames, file types –HTML  Tags/elements  Links  Images in web pages  Describing list data  Describing table data