13
<HTML> Lists

5. lists

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: 5. lists

<HTML> Lists

Page 2: 5. lists

Have you ever

created a

top 10 list?

<HTML

> Lists

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

Page 3: 5. lists

Or wanted to

itemize

something?

<HTML>

Lists

• Apples

• Oranges

• Bananas

Page 4: 5. lists

This is done

with 3 types of

HTML list tags

<HTML>

Lists

• Unordered List

• Ordered List

• Definition List

Page 5: 5. lists

Lets first look at Unordered List

<HTML>

Lists

• Apples

• Oranges

• Bananas

<ul>

<li>Apples</li>

<li>Oranges</li>

<li>Bananas</li>

</ul>

Page 6: 5. lists

Lets first look at Unordered List

<HTML>

Lists

• Apples

• Oranges

• Bananas

<ul>

<li>Apples</li>

<li>Oranges</li>

<li>Bananas</li>

</ul>

Unordered list are created using the <ul> tag

Page 7: 5. lists

Lets first look at Unordered List

<HTML>

Lists

• Apples

• Oranges

• Bananas

<ul>

<li>Apples</li>

<li>Oranges</li>

<li>Bananas</li>

</ul>

Then each item uses the <li> tag to separate them

Page 8: 5. lists

Q: Bullets are nice, but what if I

want numbers?

<HTML>

Lists

1.Yellow Ball 2.Blue Ball 3.Red Ball 4.Purple Ball

A: This is done with

Ordered List and the <ol> tag.

Page 9: 5. lists

Lets look at Ordered List

<HTML>

Lists

1.Yellow Ball 2.Blue Ball 3.Red Ball 4.Purple Ball

<ol>

<li>Yellow Ball</li>

<li>Blue Ball</li>

<li>Red Ball</li>

<li>Purple Ball</li>

</ol>

The parent tag is now <ol>

but the <li> tags stay.

Page 10: 5. lists

study

the devotion of time and attention to acquiring

knowledge

design

a plan or drawing produced to show the look

and functionality

work

a person’s regular occupation, profession, or

trade

<HTML

> Lists

Next...Definition Lists

Page 11: 5. lists

First, a different parent tags

<HTML>

Lists

<dl>

<dt>study</dt>

<dd>the devotion of time and attention to acquiring knowledge </dd>

<dt>design</dt>

<dd>a plan or drawing produced to show the look and functionality</dd>

<dt>work</dt>

<dd>a person’s regular occupation, profession, or trade</dd>

</dl>

definition list <dl>

Page 12: 5. lists

Second, there are now 2 tags

<HTML>

Lists

<dl>

<dt>study</dt>

<dd>the devotion of time and attention to acquiring knowledge </dd>

<dt>design</dt>

<dd>a plan or drawing produced to show the look and functionality</dd>

<dt>work</dt>

<dd>a person’s regular occupation, profession, or trade</dd>

</dl>

definition description <dd>

definition term <dt>

Page 13: 5. lists

Give it a try

LeanIT.am has a complete online reference

and example section that will give you more

detailed information and also working samples.

Click to View the HTML List Reference

<HTML

> Lists