Unordered Lists (ul element)

info Definition & Purpose

  • Used for items where order doesn't matter
  • Displays items with bullet points
  • Perfect for grouping related items

code HTML Syntax

HTML
<ul>
  <li>milk</li>
  <li>eggs</li>
  <li>bread</li>
  <li>hummus</li>
</ul>
Key Points
  • Each list item wrapped in <li> tags
  • Entire list wrapped in <ul> tags
  • Bullet style can be customized with CSS

visibility Visual Representation

desktop_windows Browser Preview
  • milk
  • eggs
  • bread
  • hummus

check_circle Common Use Cases

  • Shopping lists
  • Feature lists
  • Ingredients in recipes
  • Navigation menus
  • Grouping related items