How to create an unordered list in HTML ?

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

full-stack-img




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.