Presentation is loading. Please wait.

Presentation is loading. Please wait.

Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.

Similar presentations


Presentation on theme: "Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction."— Presentation transcript:

1 Presenting Information on WWW using HTML

2 Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction to HTML A Closer Look at HTML Document How to use URLs, Anchor Tags, and Document References Tables, Lists, Forms

3 The Architecture of Web Sites

4 Introduction to HTML An HTML document consists of lines of text with embedded markup tags that specify Web-page formatting and links to other pages Invented by Tim Berners-Lee at CERN 1989 – The birth of the World Wide Web

5 Introduction to HTML In 1993, students, faculty, and staff of the National Center for Supercomputing Applications (NCSA) developed the first graphical browser – Mosaic Web browser and Web server – Became Netscape Current version is HTML (HTML 4.01 – http://www.w3.org/TR/html401/ – 10 minutes for new commers: http://www.w3.org/MarkUp/Guide/

6 A Closer Look at HTML Documents HTML documents are structured using tags, attributes, and nesting – Tag with text: text BigHit Video Online Reservation System Enter Video Reservation System – Tag with no text: – Nested tags:

7 URLs, Anchor Tags, and Document References http://www.w3.org/TR/REC-html40/ Protocol Host Machine Name

8 URLs, Anchor Tags, and Document References URL (Uniform Resource Locator) – A protocol, a mechanism used to fetch the desired object. In this case: http (Hypertext Transfer Protocol). – The host machine, the computer that contains the requested object. In this case, the host computer is www.w3.org. Special host name for browser computer: localhost – The object name. In this case, /TR/REC-html40/.

9 Relative URLs Relative URL contains only object name – Refers to object on the same server as the page with the reference For page URL http://www.web4data.com/dbmgmt/bighit/fig1002.ht ml – Base URL is http://www.web4data.com/dbmgmt/bighit/ – Protocol http, host machine www.web4data.com, directory /dbmgmt/bighit/

10 Relative URLs Relative URL not starting with / – Refers to object relative to directory containing the page – Create full URL by appending relative URL to base URL images/bighit.jpg becomes http://www.web4data.com/dbmgmt/bighit/images/bighit.jpg Relative URL starting with / – Refers to object relative to home directory of server – Create full URL by appending the relative URL to the protocol and host machine /dbmgt/bighit/index.html becomes http://www.web4data.com/dbmgmt/bighit/index.html

11 Fundamentals of HTML HTML, HEAD, Title, Body Headings and paragraphs Add emphasis to your text Use various kinds of lists Add links to other pages Add images Add links to other pages

12 and The tag is the first tag in your document. It tells the Internet browser that it is reading an HTML document (without it, the browser would think it was viewing a text document). This is the closing tag for the tag. This should be the last line in your HTML document.

13 and Used to contain information such as title, style sheets : This is the closing tag.

14 and – It is used to make the title of the page. The title of the page will appear in the blue bar across the top of your active window Example: Basic HTML

15 and We put all your text, images, and links between the opening and closing tags.

16 Headings and paragraphs There are up to six levels of headers that can be used in your document, H1 through H6. Header 1 is the largest header and they get progressively smaller through header 6.

17 Example This is a header 1 tag This is a header 2 tag

18 Add emphasis to your text Boldface This is a boldface tag. Italics This is an italic tag.

19 Lists Numbered list item 1 list item 2 list item 3

20 Lists Unumbered: list item 1 list item 2 list item 3

21 Lists Definition lists allow you to indent without necessarily having to use bullets. This is a term This is a definition And yet another definition Another term Another definition

22 Center You can center text, images, and headings with the center tag: This is a centered sentence The center tag automatically inserts a line break after the closing center tag.

23 File names Use lowercase file names User proper extension: – *.html or *.htm

24 Designing a web site Determine the purpose of the web site Determine the target audience Determine numbers of pages Sketch the site on paper

25 Lesson plan Tables and Links Practice

26 Presenting Information in HTML Tables Table tags provide the primary method of organizing information on pages – Table tags create a regular, rectangular layout – Table tags present tabular information Table is surrounded by – Attributes border and bgcolor –

27 Table tags (continue) Row is surrounded by Data cell is surrounded by Table heading is surrounded by Example: Year Sales 2000 $18M 2001 $25M 2002 $36M

28 Tables (continue)

29 Cell spading You can increase the amount of padding for all cells using the cellpadding attribute on the table element Year Sales 2000 $18M 2001 $25M 2002 $36M

30 Table cell spading (continue)

31 Table width The value is either the width in pixels or a percentage value representing the percentage of the space available between the left and right margins Example: …

32 Table width (continue)

33 Text Alignment within Cells Year Sales 2000 $18M 2001 $25M 2002 $36M

34 Empty cells and Cell span Empty cells: Cell span Year Sales North South Total 2000 $10M $8M $18M 2001 $14M $11M $25M

35 Cell spans

36 Coloring your tables Use Style sheet Use background color attribute Determine HEX value for color

37 Coloring a table Year Sales 2000 $18M 2001 $25M

38 Color Each color is identified by its  Red- Green- Blue (RGB) values,  three numbers that range from 0 to 255, each of which represents the intensity of the Red, Green, or Blue component of the desired color.  We need to represent each color in hexadecimal (0-F)

39 Color Example:

40 Color http://www.cookwood.com/html/colors/backfl apcolors.html http://www.cookwood.com/html/colors/backfl apcolors.html

41 Example

42 Linking Linking to another web page: UW- Milwaukee Computer Science Department

43 Practice Open TextPad for editor Create a Web page Save as index.html Open IE File -> Open the file

44 Practice 1. Open TextPad for editor. 2. Cut and paste (or type) the following code Sample HTML file with table

45 Practice 3. Insert the HTML code so that it: - Display the link to Math and CS department in the center of the page - Then create a table (see picture below)


Download ppt "Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction."

Similar presentations


Ads by Google