html revisited. learning goals for today 1.to develop your personal web page 2.to upload your web...

77
HTML Revisited

Upload: cecily-gilmore

Post on 28-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Revisited

Page 2: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Learning Goals for Today

1. To develop your personal Web page

2. To upload your Web page to UMT’s Web server so that it becomes visible on the Internet as http://sst.umt.edu.pk/student/xxxxxxxxx/

where xxxxxxxxx is your user ID

Page 3: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

But first …How to develop personal Web page

and make it available over the Internet through the URL

http://sst.imt.edu.pk/fac/ihussain

Page 4: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Requirements

• Text Editor

• Browser

• Server

Page 5: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

link

URL

page title

Page 6: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTMLHyper Text Markup Language

Page 7: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Tags• HTML consists of sets of commands

called Tags• Tags tell browser how to display

information.• Tags come in pairs• Tags are not case sensitive• Document Tags• Text Structure Tags

Page 8: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

HTML Code

Page 9: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

HTML Code

The ones in yellow, i.e.<HTML>, </HTML>, <HEAD>,</HEAD>, <BODY>, </BODY>

are the six essential HTML tags,required in all Web pages

1

2

3

4

5

6

Page 10: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

HTML Code

Page 11: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 12: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 13: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Link Label

Link Descriptio

n

Page 14: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 15: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 16: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 17: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code<HTML>

<HEAD><TITLE>Imran Hussain's Home Page</TITLE></HEAD>

<BODY>

<H1>Imran Hussain</H1>

<P><B>Assistant Professor</B><BR><A HREF="http://www.imt.edu.pk/">IMT</A><BR>52-L Gulberg III, Lahore, Pakistan.<BR>+92-42-588-6166<BR><A HREF="mailto:[email protected]">[email protected]</A><BR></P>

<P>I teach the <A HREF="http:/sst.imt.edu.pk/cs101/">Introduction to Computing</A> course. </P>

</BODY>

</HTML>

Page 18: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

This HTML document was developed in a plain-text editor called notepad

Page 19: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible
Page 20: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

After typing the code into notepad, I saved it as index.htm

To check if I have done everything right, I double clicked on icon of the saved file index.htm

Double clicking on the icon launched the Web browser displaying my index.htm

Page 21: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

My Web page is done!

Page 22: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Problem!My Web page is visible only on my computer. It would be nice if it was also visible on the computers of all my friends and relatives as well.

Page 23: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Solution!I need to upload my Web page to a Web server that is connected to the Internet

As a result, my Web page will become accessible to anyone with a computer hooked up to the Internet

Page 24: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Upload Process

I used ftp to upload my Web page to the IMT Web server

Page 25: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

My Web page is now accessible from all of the millions of computers connected to the Internet

Page 26: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

http://sst.imt.edu.pk/fac/ihussain/index.htm

http://sst.imt.edu.pk/fac/ihussain

Page 27: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Developing Your Own Web Page

Step 1Open notepad, type in the HTML code, and save it as index.htm on your PC’s Desktop

Page 28: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Developing Your Own Web Page

Step 2Log on to the UMT Web server and upload that index.htm from your PC’s Desktop to your account on that Web server

Page 29: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

That is it!Your Web page is now accessible on the Internet through the URL:

http://sst.umt.edu.pk/student/xxxxxxxxxwhere xxxxxxxxx is your user ID

Page 30: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<HTML>……</HTML>

Page 31: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML tags that go in the HEAD portion of

a Web page

Page 32: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<HEAD>……</HEAD>

Page 33: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TITLE> … </TITLE>

Page 34: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML tags that go in the BODY portion of

a Web page

Page 35: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<BODY>……</BODY>

Page 36: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<P> … </P>

Paragraph

Page 37: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<BR>

Line break

Page 38: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<B> … </B>

Bold text

Page 39: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<A HREF = “action” > label </A>

Anchor(Anchors are used to embed links in a Web page)

Page 40: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<A HREF = “action” > label </A>

• http://– Displays the Web page specified by the link– example: “http://www.umt.edu.pk”

• mailto:– Sends an e-mail to the specified address– example:

“mailto:[email protected]

Page 41: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<A HREF = “action” > label </A>

label can be any text string

Page 42: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML CodeI am at the

<A HREF=“http://www.imt.edu.pk”>IMT</A>. You can send me an e-mail by clicking

<A HREF=“mailto:[email protected]”>here</A>.

Browser DisplayI am at the IMT. You can send me an e-mail by clicking here.

Page 43: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Single Tags with Attributes

<tagName attributes>

Example: <HR width=“50%”>

Page 44: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Paired Tags

<tagName> … </tagName>

Example: <H1> … </H1>

Page 45: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Paired Tags with Attributes

<tagName attributes > … </tagName>

Example: <H1 align=“center”> … </H1>

Page 46: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<UL>

<LI>SimCity</LI>

<LI>Quake</LI>

<LI>Bridge</LI>

</UL>

• SimCity

• Quake

• Bridge

Browser Display

Page 47: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<UL> Un-ordered List

<LI> Line Item

Page 48: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

The default “bullet” for these lists is a “disc”

That, however, can be changed to a “circle” or a “square” with the help of the type attribute

Page 49: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<UL type = “circle”>

<LI>SimCity</LI>

<LI>Quake</LI>

<LI>Bridge</LI>

</UL>

• SimCity

• Quake

• Bridge

Browser Display

Page 50: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

type = “square”

Page 51: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Q: What happens if I start a new list without closing the original one?

<UL><LI>SimCity</LI><LI>Quake II</LI>

<UL> <LI>SimCity 3000</LI>

<LI>Quake III</LI></UL>

<LI>Bridge</LI></UL>

Page 52: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

• SimCity

• Quake II

• SimCity 3000

• Quake III

• Bridge

Browser Display

1. Different bullets2. Additional tab

Page 53: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Such structures, i.e., those in which a new one starts before the first list is finished, are called Nested Lists

Page 54: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Types of Lists

In addition to un-ordered lists, HTML supports two other types

– Ordered Lists

– Definition List

Page 55: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Ordered List

<OL>

<LI>SimCity</LI>

<LI>Quake</LI>

<LI>Bridge</LI>

</OL>

1. SimCity

2. Quake

3. Bridge

Browser Display

Numbers instead of discs, circles

or squares

OL instead of UL

Page 56: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Ordered List

<OL type = “a”>

<LI>SimCity</LI>

<LI>Quake</LI>

<LI>Bridge</LI>

</OL>

a. SimCity

b. Quake

c. Bridge

Browser Display

Page 57: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Ordered List Types

type Result

“A” A, B, C, …

“a” a, b, c, …

“I” I, II, III, IV, …

“i” i, ii, iii, iv, …

“1” 1, 2, 3, …

Page 58: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Q: How would one start an ordered list with a number other than 1

25. SimCity

26. Quake

27. Bridge

Browser Display

Page 59: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Ordered List

<OL start = “25”>

<LI>SimCity</LI>

<LI>Quake</LI>

<LI>Bridge</LI>

</OL>

25. SimCity

26. Quake

27. Bridge

Browser Display

Page 60: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Definition List

<DL> <DT>SimCity</DT>

<DD>A great simulation game in which one build cities </DD>

<DT>Quake</DT> <DD> One of the

best of the shoot-em-up genre </DD>

</DL>

SimCity

A great simulation game in which one build cities

Quake

One of the best of the shoot-em-up genre

Browser Display

Term

Definition

Page 61: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<DL> Definition List

<DT> Term

<DD> Definition

Page 62: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

• Ordered lists as well as definition lists can be nested just like the un-ordered lists

• Can any type of list be nested into any other type?

Page 63: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

• Lists are one way of presenting data in a an ordered or formal fashion

• Tables provide another - more customizable - way of displaying ordered information on Web pages

Page 64: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Browser Display

Indoor Outdoor

Squash Cricket

Page 65: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<TABLE border = "1" > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR></TABLE>

Browser Display

Indoor Outdoor

Squash Cricket

Page 66: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TABLE>Table

(made up of rows)

<TR>Row

(made up of data cells)

<TH>Heading Data Cell

(Can contain paragraphs, images, lists, forms, tables)

<TD>Data Cell

(Can contain paragraphs, images, lists, forms, tables)

Page 67: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TABLE> Attributes• BORDER

– Determines the thickness of the table border– Example: <TABLE BORDER = “2”>

• CELLPADING– Determines the distance between the border of a cell and

the contents of the cell– Example: <TABLE CELLPADDING = “3”>

• CELLSPACING– Determines the empty spacing between the borders of two

adjacent cells– Example: <TABLE CELLSPACING = “1”>

Page 68: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<TABLE border = "1" > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR></TABLE>

Browser Display

Indoor Outdoor

Squash Cricket

Page 69: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<TABLE> <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR></TABLE>

Browser Display

Indoor Outdoor

Squash Cricket

Page 70: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TABLE>,<TR>,<TH>,<TD> Attributes

• ALIGN– Possible values: Center, Left, Right– Example: <TH ALIGN = “center”>

• BGCOLOR– Example: <TD BGCOLOR = “red”>

• WIDTH– Example: <TR WIDTH = “40%”>

• HEIGHT– Example: <TABLE HEIGHT = “200”>

40% of the

window width

Page 71: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TR> Attributes

• VLAIGN

– Determines the vertical alignment of the contents of all of the cells in a particular row

– Possible values: Top, Middle, Bottom

– Example: <TR VALIGN = “bottom”>

Page 72: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

<TH> & <TD> Attributes• NOWRAP

– Extend the width of a cell, if necessary, to fit the contents of the cell in a single line

– Example: <TD NOWRAP>

• ROWSPAN– No. of rows the current cell should extend itself downward– Example: <TD ROWSPAN = “2”>

• COLSPAN– The number of columns the current cell should extend itself– Example: <TD COLSPAN = “5”>

• VALIGN– Same as that for <TR>

Page 73: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<TABLE border=“1” > <TR> <TH colspan=“2”>

Indoor Outdoor </TH> </TR> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR></TABLE>

Browser Display

Indoor Outdoor

Squash Cricket

Page 74: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Year QuarterExpenses Income

Quetta Dubai Quetta Dubai

2001

1 1,900 8,650 9,000 7,780

2 2,230 8,650 8,500 8,670

3 4,000 8,650 9,900 9,870

4 2,200 8,650 9,800 9,900

2002

1 7,780 8,650 7,780 9,000

2 8,670 8,650 8,670 8,500

3 9,870 8,650 9,870 9,900

4 9,900 8,650 9,900 9,800

Page 75: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

HTML Code

<TABLE border = "1" > <CAPTION> My favorite sports </CAPTION> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR></TABLE>

Browser Display

Squash CricketMy favorite sports

Caption must be placed immediately after the<TABLE> tag

Page 76: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

What have we learned today?

1. We now know how Web pages are built using HTML

2. We also know how to make our personal Web pages available to everyone on the Internet

Page 77: HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible

Useful URL

HTML for the Conceptually Challenged

http://www.arachnoid.com/lutusp/html_tutor.html