In HTML, the <ul> element is used to create an unordered list. An unordered list is a list of items where each item is preceded by a bullet point or other marker. 

Here's the basic syntax for an unordered list:

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <!-- Add more list items if needed -->
</ul>
  • <ul>: Represents the entire unordered list.
  • <li>: Represents each individual list item within the unordered list.

Here's an example of an HTML unordered list:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Unordered List Example</title>
</head>
<body>

    <h2>Grocery List</h2>

    <ul>
        <li>Milk</li>
        <li>Eggs</li>
        <li>Bread</li>
        <li>Butter</li>
    </ul>

</body>
</html>

In this example:

  • The <ul> element contains four <li> elements, each representing a different grocery item.
  • The list items are displayed with bullet points by default.

You can also customize the marker style of the unordered list using the type attribute, but it's not widely supported and is not recommended for consistent cross-browser styling. Typically, CSS is used for more flexible and consistent styling of lists.