Account
Categories

Unordered List


Definition:

If you have a list of items and want to display them without order using bullet points, circles, or square symbols, then you can use the <ul> element.

It keeps list items inside the <li> element and allows different bullet styles using attributes like type.

Syntax:

<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

Attributes:

type → It defines bullet style (disc, circle, square)

Example: Website Designing Tools

<ul type="square">
  <li>HTML</li>
  <li>CSS</li>
  <li>JavaScript</li>
  <li>Bootstrap</li>
  <li>Figma</li>
</ul>

Output:

■ HTML
■ CSS
■ JavaScript
■ Bootstrap
■ Figma