it19
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML Lists

3 posters

Go down

HTML Lists Empty HTML Lists

Post by Wingedge Sat Aug 09, 2008 11:41 pm

HTML supports ordered, unordered and definition lists.

Unordered Lists

An unordered list is a list of items. The list items are marked with bullets (typically small black circles).

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
Code:

<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>

Here is how it looks in a browser:


  • Coffee
  • Milk


Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.
Ordered Lists

An ordered list is also a list of items. The list items are marked with numbers.

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

Code:
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>

Here is how it looks in a browser:

1. Coffee
2. Milk

Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.
Definition Lists

A definition list is not a list of items. This is a list of terms and explanation of the terms.

A definition list starts with the <dl> tag. Each definition-list term starts with the <dt> tag. Each definition-list definition starts with the <dd> tag.
Code:

<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>

Here is how it looks in a browser:

Code:
Coffee
    Black hot drink
Milk
    White cold drink

Inside a definition-list definition (the <dd> tag) you can put paragraphs, line breaks, images, links, other lists, etc.

HTML Lists F_x5m_a430462
Wingedge
Wingedge
Admin

Male
Number of posts : 53
Age : 40
Name : Sir Francis
Year : Instructor
Registration date : 2008-06-17

https://it19.forumotion.com

Back to top Go down

HTML Lists Empty Re: HTML Lists

Post by venzel Wed Jan 28, 2009 2:43 am

cheers

venzel

Male
Number of posts : 1
Age : 34
Name : joven
Registration date : 2008-11-19

Back to top Go down

HTML Lists Empty Re: HTML Lists

Post by shequito_1989 Wed Mar 04, 2009 3:24 am

what happen?

shequito_1989

Female
Number of posts : 2
Age : 34
Name : Sheena Mae Aton
Registration date : 2008-11-12

Back to top Go down

HTML Lists Empty Re: HTML Lists

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum