19
Unit 5 – List Types Presentation 1 Web Programming

M02 un05 p01

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: M02 un05 p01

Unit 5 – List Types

Presentation 1

Web Programming

Page 2: M02 un05 p01

Revision

1. Name the tag to make a text bold?

2. List the advantages of <FONT> tag over <BIG> tag.

3. Write the use of <SUB> and <SUP> tags?

4. Name the tag used to centre align a text?

5. Which tag is used to strike out a text?

Page 3: M02 un05 p01

Objectives

At the end of this presentation, you will be able to• Add Ordered List to your document• Add Unordered List to your document

Page 4: M02 un05 p01

Introduction

• A list is generally a number of items displayed one after the other in consecutive lines.

• There are three types of list in HTML. They are – Ordered List– Unordered List – Definition List

Page 5: M02 un05 p01

Ordered List

• Ordered list is a list of items that appears in some order.

• The list may appear in ascending order, alphabetical order or any logical order.

• <OL> and <LI> tags are used to create ordered list.

• <OL> tag specifies that the list followed is an ordered list.

• <LI> tag specifies the item to be displayed

Page 6: M02 un05 p01

Ordered List

• Example:

List of Planets:

1. Mercury

2. Venus

3. Earth

4. Mars

5. Jupiter

Page 7: M02 un05 p01

Hands-On!

• Open the HTML file Ord_List.html in C:\HTML\Unit5\Hands On Folder in Internet Explorer.

• This HTML document describes the use of Ordered List.

• The output is shown in the next slide.

Page 8: M02 un05 p01

Hands-On!

Page 9: M02 un05 p01

Attributes of <OL> Tag

• The attributes of <OL> tag are explained in the table.

Page 10: M02 un05 p01

Activity 2.5.1

• Create a web page that explains the types of Lists and <OL> tag as shown in Figure.

• Save the HTML file as Activity1.html in C:\HTML\Unit5\Activity folder.

Page 11: M02 un05 p01

Lab Exercise

1. Open D5_1.html in Internet Explorer.

a. Identify the tag which is used create an unordered list in source code D5_1.html.

b. Name the attribute which used to change bullet type.

c. Change the bullet style to a.

Page 12: M02 un05 p01

Unordered List

• Unordered list is a list of items that can appear in any order.

• The <UL> and <LI> tags are used to create Unordered list.

• <UL> tag specifies that the list followed is an ordered list.

• <LI> tag specifies the item to be displayed.

Page 13: M02 un05 p01

Unordered List

Example for Unordered list:• Asia• Africa• Australia• North America• South America• Europe• Antarctica

Page 14: M02 un05 p01

UL Tag Attributes

• The attributes of <UL> tag are explained in the table.

Page 15: M02 un05 p01

Activity 2.5.2

• Create a web page that explains Unordered List as shown in Figure.

• Save the HTML file as Activity2.html in C:\HTML\Unit5\Activity folder.

• The output is shown in the next slide.

Page 16: M02 un05 p01

Activity 2.5.2 (Contd..)

Page 17: M02 un05 p01

Lab Exercise

1. Open D5_2.html in Internet Explorer.

a. Identify the tag which is used to create order list in source code D5_2.html.

b. Identify the attribute which used to change bullet type.

c. Change the bullet style to square.

Page 18: M02 un05 p01

Summary

In this presentation, you learnt the following:• The three types of list are Ordered List,

Unordered List and Definition List.• The <OL> and <LI> tags are used to create

ordered list.• TYPE and START are attributes of <OL> tag• The <UL> and <LI> tags are used to create

Unordered list. UL stands for Unordered List.

Page 19: M02 un05 p01

Assignment

1. State the difference between Ordered and Unordered list.

2. List the attributes that is used in <OL> tag.