How to create HTML List | Unordered/Ordered/Definition Lists

Description: Simple Way to Add/Create HTML Lists as Unordered, Ordered or Definition List. Merging Ordered List into Un-Ordered List and Vice-Versa.

In this post, I will explain how you can create ordered, unordered or definition lists using HTML. You will also learn how you can merge ordered list into unordered list or vice-versa. Ordered or unordered lists are useful to sort out the things into separate lines over the webpage or on the paper. The HTML tag for unordered list is <ul> and the HTML tag for ordered list is <ol>. In both lists, each list item will be start with <li> tag. Let us give you an example.

how to create a HTML list
You should also read:
Take a look of an un-ordered list,
  • HTML Ordered Lists
  • HTML Unordered Lists
  • HTML Definition Lists

The HTML code for unordered list is,

<ul>
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ul>

Take a look of an ordered list,
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists

The HTML code for ordered list is,

<ol>
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>

Ordered and un-ordered lists are famous than the definition list. Basically HTML definition list is a list of items and each item has its description. Definition list starts from <dl> and each item defines in <dt> tag with the description in <dd> tag. Take an example of a definition list,

Blogger
- A blogging platform run by Google
Wordpress
- Another blogging platform

The HTML code for the given definition list is,

<dl>
<dt>Blogger</dt>
<dd>- A blogging platform run by Google</dd>
<dt>Wordpress</dt>
<dd>- Another blogging platform</dd>
</dl>

Now move further for better understanding,

Create/Add Un-Ordered List in HTML for Blogger, Websites

There are three types of unordered list that you can use. These are disc, circle or square un-ordered lists and also called as bullets or list-type. If you don't mention the list-type then the disc mode will be chosen. If you want to change the list-type, add an extra attribute type in <ul> tag, and set a value in that attribute as disc, circle or square. In the following table, I have defined each list types with preview and the HTML code.


List TypePreviewHTML Code
Disc list
  • HTML Ordered Lists
  • HTML Unordered Lists
  • HTML Definition Lists
<ul type="disc">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ul>
Circle list
  • HTML Ordered Lists
  • HTML Unordered Lists
  • HTML Definition Lists
<ul type="circle">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ul>
Square list
  • HTML Ordered Lists
  • HTML Unordered Lists
  • HTML Definition Lists
<ul type="square">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ul>


How to Add/Create Ordered List in HTML for Websites, Blogger

Let us first we talk about the types of ordered list. Basically, the ordered list has five types numbered list, uppercase letters list, lowercase letters list, uppercase roman numbers list and lowercase roman numbers list. If you don't mention the list type while creating your ordered list, numbered list will be active by default. Using another list type, just add an attribute type in <ol> tag and set the value corresponding to the list-types. In the following table, I have defined each list types with preview and the HTML code.

List TypePreviewHTML Code
Numbered list
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists
<ol type="1">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>
Uppercase letters list
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists
<ol type="A">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>
Lowercase letters list
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists
<ol type="a">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>
Uppercase Roman list
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists
<ol type="I">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>
Lowercase Roman list
  1. HTML Ordered Lists
  2. HTML Unordered Lists
  3. HTML Definition Lists
<ol type="i">
<li>HTML Ordered Lists</li>
<li>HTML Unordered Lists</li>
<li>HTML Definition Lists</li>
</ol>

Merging Ordered/Un-Ordered List to Un-Ordered/Ordered List


In this section, we will use ordered list in un-ordered list and vice-versa. Sometimes, a list of each items need more information so we need to use child list, in that case, either we can use different list-type of the same parent list or use the opposite list. Take each types of example along with the preview and corresponding HTML codes. In the following table refer "O" with ordered list and "U" for un-ordered list.

MethodsPreviewHTML Code
O in U lists
  • HTML Ordered Lists
    1. Numbered Lists
    2. Uppercase letters lists
    3. Lowercase letters lists
    4. Uppercase Roman lists
    5. Lowercase Roman lists
  • HTML Unordered Lists
    1. disc Lists
    2. Circle Lists
    3. Square Lists
  • HTML Definition Lists
<ul type="disc">
<li>HTML Ordered Lists
<ol  type="1">
<li>Numbered Lists</li>
<li>Uppercase letters lists</li>
<li>Lowercase letters lists</li>
<li>Uppercase Roman lists</li>
<li>Lowercase Roman lists</li>
</ol>
</li>
<li>HTML Unordered Lists
<ol type="1">
<li>disc Lists</li>
<li>Circle Lists</li>
<li>Square Lists</li>
</ol>
</li>
<li>HTML Definition Lists</li>
</ul>
U in O list
  1. HTML Ordered Lists
    • Numbered Lists
    • Uppercase letters lists
    • Lowercase letters lists
    • Uppercase Roman lists
    • Lowercase Roman lists
  2. HTML Unordered Lists
    • disc Lists
    • Circle Lists
    • Square Lists
  3. HTML Definition Lists
<ol type="I">
<li>HTML Ordered Lists
<ul type="square">
<li>Numbered Lists</li>
<li>Uppercase letters lists</li>
<li>Lowercase letters lists</li>
<li>Uppercase Roman lists</li>
<li>Lowercase Roman lists</li>
</ul>
</li>
<li>HTML Unordered Lists
<ul type="disc">
<li>disc Lists</li>
<li>Circle Lists</li>
<li>Square Lists</li>
</ul>
</li>
<li>HTML Definition Lists</li>
</ol>

Hope this tutorial helps you to create HTML lists manually. If you like the post, please share it!

Like Us on Social Media
Share this article
Copyright © 2015 BloggerTipsSEOTricks.com • All Rights Reserved.
Powered by Blogger
back to top