HTML Tutorial

HTML Tag: <ul>

Usage:

  • Used to create an unordered list (a list with bullet points)
  • Each item in the list is represented by an <li> tag

Attributes:

  • type: Specifies the bullet style (e.g., "disc", "square", "circle")
  • compact: Creates a more compact list, with smaller bullet points

Examples:

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

This will create a list with three bullet points:

  • Item 1
  • Item 2
  • Item 3

To change the bullet style to squares, add the type attribute:

<ul type="square">
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

To create a compact list, add the compact attribute:

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