Lists (ordered/unordered)

All HTML tutorials.
User avatar
Elias
Administrator
Administrator
Posts: 1012
Joined: Wed Apr 06, 2016 1:23 pm
Location: Canada
Contact:

Lists (ordered/unordered)

Postby Elias » Tue Apr 12, 2016 5:20 am

Unordered List
The unordered list starts with the opening tag <ul> (abbreviation of unordered list) and every item on list is surrounded by the <li> tag (li stands for list item):

Code: Select all

<ul>
        <li>List item no. 1</li>
        <li>List item no. 2</li>
        <li>List item no. 3</li>
</
ul


This would result in:
  • List item no. 1
  • List item no. 2
  • List item no. 3
http://www.Front-Host.com
Here to serve, guide and help everyone.

User avatar
Elias
Administrator
Administrator
Posts: 1012
Joined: Wed Apr 06, 2016 1:23 pm
Location: Canada
Contact:

Re: Lists (ordered/unordered)

Postby Elias » Tue Apr 12, 2016 5:20 am

Ordered List

Instead of the <ul> tag, you use the <ol> (abbreviation for ordered list):

Code: Select all

<ol>
        <li>List item no. 1</li>
        <li>List item no. 2</li>
        <li>List item no. 3</li>
</
ol


This would give:
  1. List item no. 1
  2. List item no. 2
  3. List item no. 3
http://www.Front-Host.com
Here to serve, guide and help everyone.


Return to “HTML”

Who is online

Users browsing this forum: No registered users and 1 guest