comp 3

Post on 07-Aug-2015

16 Views

Category:

Education

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

HTML LIST TAGSLIST TAGS

List are often easier to read than paragraphs.

provide information in a structured, easy-to-read format.

List come in two varieties: numbered (ordered) and bulleted (unordered).

To use a lists, we first specify that we want information to appear as a list, and then we identify each line-item in the list. Let us now have our working script for this element list.

UNORDERED LIST Specifies that the information appear as

unordered (bulleted) list. EXAMPLE: <ul>

<li>EASY<li>HARD </ul>

OUTPUT: EASY HARD

ORDERED LIST Specifies that the information appear as

ordered (numbered) list.EXAMPLE: <ol>

<li>FIRST <li>SECOND</ol>

OUTPUT:1. FiRST 2. SECOND

LIST ITEM <li>

Specifies a line item in either ordered or unordered lists

CREATING ORDERED LIST

ORDERED LIST By default, list will start with 1 (whether

Hindu-Arabic or Roman Numeral) or a. HTML also allows you to change the default numbering for the entire list or for a specific list. To change the default numbering for the entire list, you see the START attribute of the <ol> tag to indicate what number or letter the bullet will start. The syntax to do this is:

<ol start=start of list>

top related