Skip to content
Related Articles

Related Articles

Improve Article
How to create an unordered list in HTML ?
  • Last Updated : 05 Jun, 2020

In this article, we define an unordered list by using the <ul> tag. It contains the list items <li> element. The <ul> tag requires opening and closing tags. By using CSS style, you can easily design an unordered list.

Syntax:

<ul> List of items </ul>

Examples 1:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to define an
        unordered list
    </title>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
  
    <h2>
        HTML5: How to define 
        an unordered list?
    </h2>
  
    <p>GeeksforGeeks courses List:</p>
    <ul>
        <li>Geeks</li>
        <li>Sudo</li>
        <li>Gfg</li>
        <li>Gate</li>
        <li>Placement</li>
    </ul>
</body>
  
</html>

Output:

Example 2:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to define an 
        unordered list?
    </title>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
  
    <h2>
        HTML5: How to define 
        an unordered list?
    </h2>
  
    <p>GeeksforGeeks courses List:</p>
      
    <ul>
        <li>Tutorials</li>
        <li>Online Practice Editor </li>
        <li>Examples</li>
        <li>References</li>
        <li>Videos</li>
    </ul>
</body>
  
</html>

Output:




My Personal Notes arrow_drop_up
Recommended Articles
Page :