Thursday, 11 July 2024

Write the unordered list' program in html

 Certainly! In HTML, you create an unordered list using the `<ul>` (unordered list) and `<li>` (list item) tags. Here's an example of how you can create a simple unordered list:


```html

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Unordered List Example</title>

</head>

<body>


<h2>Example of an Unordered List</h2>


<ul>

  <li>Item 1</li>

  <li>Item 2</li>

  <li>Item 3</li>

  <li>Item 4</li>

</ul>


</body>

</html>

```


In this example:

- `<ul>` defines the unordered list.

- Each list item `<li>` represents an item in the list.

- You can have as many `<li>` elements as you need within the `<ul>` container.


This will display a simple unordered list with four items numbered automatically with bullet points.

No comments:

Post a Comment