HTML Lists

HTML List Example

<!DOCTYPE html>


<html>

<body> 

<h2>An Unordered HTML List</h2>

<ul>

  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

<h2>An ordered HTML List</h2>

<ol>

  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

</body>

</html>

An Unordered HTML List

  • Coffee
  • Tea
  • Milk

An Ordered HTML List

  1. Coffee
  2. Tea
  3. Milk

Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

The list items will be marked with bullets (small black circles) by default:

<ul>

  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Unordered HTML List – Choose List Item Marker

The CSS list-style-type property is used to define the style of the list item marker:


<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

<!DOCTYPE html>


<html>
<head>

 

</head>
<body>

 

<ul>

</ul>

 

</body>
</html>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.