List in HTML

List are a way of representing things in a chronological manner.Sometime we use it to show the hierarchy also.

List can be of two types : Ordered List , UnOrdered Listfirst published! (required)

Ordered List in HTML

Cricket Playing nations

  1. India
  2. Pakistan
  3. England
  4. South Africa

For above list, we have to use the below code

<ol>
<li>India</li>
<li>Pakistan</li>
<li>England</li>
<li>South Africa</li>
</ol>

Another style for ordered list

  1. India
  2. Pakistan
  3. England
  4. South Africa

For above list, we have to use the below code

<ol type=”I”>
<li>India</li>
<li>Pakistan</li>
<li>England</li>
<li>South Africa</li>
</ol>

<ol type=”1|a|A|i|I”> type attribute values mean

1     Decimal numbers (1, 2, 3, 4),default value for ordered list

a    Alphabetically ordered list, lowercase (a, b, c, d)
A   Alphabetically ordered list, uppercase (A, B, C, D)
i    Roman numbers, lowercase (i, ii, iii, iv)
I  Roman numbers, uppercase (I, II, III, IV)

to start the numbering from a specific number use
<ol start=”n”>

the below code has been generated using
<ol start=”8″>

    1. India
    2. Pakistan
    3. England
    4. South Africa

To reverse the order use <ol  reversed> tag

Read More Post

STAY CONNECTED

Most Popular

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics
19 Jan

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics

In the ever-evolving world of cosmetic enhancements, there's a constant quest for the next big thing. The latest darling in