HTML List

HTML can display different items in the form of lists. Lists are used to present text in more readable form.

List Breakdown

Here is the breakdown of HTML List

Ordered List

An ordered list is a list of items in which each item is marked with a number or letter. Ordered list is also known as numbered list.

<ol> tag creates an ordered list and <li> tag is used with each item in the list.

Example

<!doctype html>  
<html>
  
  <head> 
      <title>Ordered List</title> 
  </head>
  
  <body> 
      <h3>Initial Web Development includes the languages:</h3>
      <ol>
          <li>HTML</li>
          <li>CSS</li>
      </ol>
  </body>

<html>

Unordered List

An unordered list is a list of items in which each item is marked with a symbol. Unordered list is also known as unnumbered list.

<ul> tag creates an unordered list and <li> tag is used with each item in the list.

Example

<!doctype html>  
<html>

    <head> 
        <title>Unordered List</title> 
    </head>
  
    <body> 
        <h3>Initial Web Development includes the languages:</h3>
        <ul>
            <li>HTML</li>
            <li>CSS</li>
        </ul>
    </body>

<html>