What is the ordered list

Asked By 30 points N/A Posted on -
qa-featured

Hello,

What is the ordered list?

How does it work?

Where does it use?

Please tell me about details.

Is ordered list important to web page?

SHARE
Best Answer by Haroonyousuf
Answered By 0 points N/A #163260

What is the ordered list

qa-featured

Hello,

An ordered list is of items where list items are shown in ordered.

In ordered tag list number auto create.

There are two elements to create ordered list those are <ol> and <li>

Example:

<ol>

<li>First list item. </li>

<li>Second list item.</li>

<li>Third list item. </li>

</ol>

Here the sequent of the code must be followed.

Thanks.

Best Answer
Best Answer
Answered By 0 points N/A #163261

What is the ordered list

qa-featured

If you want to list something in sequence or numbered, you‘ll have to use tag “<ol>”

  1. Tag “<ol>” is used before the start of list items.
  2. Tag “<li>” is used before each list item.
  3. Ordered list tag “<ol>” lists all the items in number sequence
  4. It is used to write procedures, actions or events that are needed to be put in series or chain.
  5. It is important for a webpage because it helps in organization of contents / material in arranged manners.

Example:

If we want to show result of a 100meter Race

html code for ordered list

<ol> 
<li>Justin Gatlin</li>
<li>David</li>
<li>Usain Bolt</li>
<li>Yohan Blake</li>
</ol>

Result that will appear in browser:

1. Justin Gatlin

2. David

3. Usain Bolt

4. Yohan Blake

Related Questions