Falytom logoFALYTOM
Games
ToolsUI ComponentsServicesProductsAbout
LoginSign Up
menu
  1. Home
  2. /Web Development
  3. /Html
  4. /Unordered Lists
Your Progress0%
0 of 76 completed

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data

Unordered Lists

Creating bullet point lists in HTML

Unordered lists are used to group related items where the order doesn't matter. They're displayed with bullet points by default and are one of the most commonly used HTML elements for organizing information.

The UL Element

The <ul> (unordered list) element creates a list of items marked with bullets. Each item in the list is wrapped in an <li> (list item) element.

basic-ul.html
<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ul>

This renders as:

  • First item
  • Second item
  • Third item

The LI Element

The <li> (list item) element represents an item in a list. It can only be used inside <ul>, <ol>, or <menu> elements.

li-example.html
<ul>
  <li>Apples</li>
  <li>Bananas</li>
  <li>Oranges</li>
  <li>Grapes</li>
</ul>

Practical Examples

Shopping List

shopping-list.html
<h2>Shopping List</h2>
<ul>
  <li>Milk</li>
  <li>Bread</li>
  <li>Eggs</li>
  <li>Butter</li>
  <li>Cheese</li>
</ul>

Feature List

features.html
<section>
  <h2>Product Features</h2>
  <ul>
    <li>Fast performance</li>
    <li>Easy to use interface</li>
    <li>24/7 customer support</li>
    <li>Free updates</li>
    <li>Secure data encryption</li>
  </ul>
</section>

Navigation Menu

navigation.html
<nav>
  <ul>
    <li><a href="/">Home</a></li>
    <li><a href="/about">About</a></li>
    <li><a href="/services">Services</a></li>
    <li><a href="/portfolio">Portfolio</a></li>
    <li><a href="/contact">Contact</a></li>
  </ul>
</nav>

Skills List

skills.html
<section>
  <h3>My Skills</h3>
  <ul>
    <li>HTML & CSS</li>
    <li>JavaScript</li>
    <li>React</li>
    <li>Node.js</li>
    <li>Python</li>
  </ul>
</section>

List Items with Multiple Elements

List items can contain any HTML content, not just plain text:

Lists with Links

list-links.html
<ul>
  <li><a href="page1.html">Introduction</a></li>
  <li><a href="page2.html">Getting Started</a></li>
  <li><a href="page3.html">Advanced Topics</a></li>
</ul>

Lists with Emphasis

list-emphasis.html
<ul>
  <li><strong>Important:</strong> Read the documentation</li>
  <li><em>Optional:</em> Join our newsletter</li>
  <li><strong>Required:</strong> Complete the survey</li>
</ul>

Lists with Multiple Paragraphs

list-paragraphs.html
<ul>
  <li>
    <h3>Step 1: Planning</h3>
    <p>Define your goals and create a detailed project plan.</p>
  </li>
  <li>
    <h3>Step 2: Design</h3>
    <p>Create wireframes and mockups for your website.</p>
  </li>
  <li>
    <h3>Step 3: Development</h3>
    <p>Build your website using HTML, CSS, and JavaScript.</p>
  </li>
</ul>

Lists with Images

list-images.html
<ul>
  <li>
    <img src="icon1.png" alt="Feature 1 icon" width="32" height="32">
    Fast Loading Speed
  </li>
  <li>
    <img src="icon2.png" alt="Feature 2 icon" width="32" height="32">
    Mobile Responsive
  </li>
  <li>
    <img src="icon3.png" alt="Feature 3 icon" width="32" height="32">
    SEO Optimized
  </li>
</ul>

Styling Unordered Lists

While this tutorial focuses on HTML, here are some common CSS styles for unordered lists:

list-styles.css
/* Remove default bullets */
ul {
  list-style-type: none;
}

/* Different bullet styles */
ul.disc { list-style-type: disc; }      /* Default */
ul.circle { list-style-type: circle; }  /* Hollow circles */
ul.square { list-style-type: square; }  /* Squares */

/* Remove bullets and padding */
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Custom bullet with emoji or icon */
ul.custom li::before {
  content: "✓ ";
  color: green;
}

/* Horizontal list */
ul.horizontal {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

ul.horizontal li {
  display: inline-block;
}

When to Use Unordered Lists

✅ Use unordered lists for:

  • Shopping lists
  • Feature lists
  • Navigation menus
  • Items where order doesn't matter
  • Collection of related items
  • Bullet point summaries
  • Lists of links

❌ Don't use unordered lists for:

  • Sequential steps (use ordered lists instead)
  • Rankings or prioritized items (use ordered lists)
  • Data that should be in a table
  • Layout purposes only (use CSS for layout)

Accessibility Considerations

♿ Accessibility Best Practices:

  • Screen readers announce lists and the number of items
  • Use semantic HTML (ul/li) instead of styled divs
  • Keep list items concise and clear
  • Ensure links in lists are descriptive
  • Don't use list-style: none unless you provide alternative visual indicators
  • Test navigation with keyboard only

Common Design Patterns

Icon List

icon-list.html
<ul class="feature-list">
  <li>
    <span class="icon">🚀</span>
    <strong>Fast Performance</strong>
    <p>Lightning-fast load times for better user experience</p>
  </li>
  <li>
    <span class="icon">🔒</span>
    <strong>Secure</strong>
    <p>Bank-level security to protect your data</p>
  </li>
  <li>
    <span class="icon">📱</span>
    <strong>Mobile Ready</strong>
    <p>Responsive design that works on all devices</p>
  </li>
</ul>

Social Media Links

social-links.html
<footer>
  <h3>Follow Us</h3>
  <ul class="social-links">
    <li><a href="https://twitter.com/username">Twitter</a></li>
    <li><a href="https://facebook.com/username">Facebook</a></li>
    <li><a href="https://instagram.com/username">Instagram</a></li>
    <li><a href="https://linkedin.com/in/username">LinkedIn</a></li>
  </ul>
</footer>

Checklist

checklist.html
<h3>Launch Checklist</h3>
<ul class="checklist">
  <li>Test all links</li>
  <li>Optimize images</li>
  <li>Check mobile responsiveness</li>
  <li>Validate HTML</li>
  <li>Test in multiple browsers</li>
  <li>Set up analytics</li>
  <li>Create sitemap</li>
</ul>

Best Practices

✅ Do:

  • Use ul for items where order doesn't matter
  • Always wrap list items in li elements
  • Keep list items concise and scannable
  • Use semantic HTML structure
  • Group related items together
  • Consider accessibility when removing default styles

❌ Don't:

  • Put content directly in ul (must be in li)
  • Use lists just for indentation (use CSS)
  • Create excessively long lists without grouping
  • Forget closing li tags
  • Use divs instead of proper list markup

Common Mistakes

❌ Wrong:

MARKUP
<!-- Don't put content directly in ul -->
<ul>
  This is wrong
  <li>Item 1</li>
</ul>

<!-- Don't use divs for lists -->
<div class="list">
  <div class="item">Item 1</div>
  <div class="item">Item 2</div>
</div>

<!-- Don't forget closing tags -->
<ul>
  <li>Item 1
  <li>Item 2
</ul>

✅ Correct:

MARKUP
<!-- All content in li elements -->
<ul>
  <li>This is correct</li>
  <li>Item 1</li>
</ul>

<!-- Use semantic HTML -->
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>

<!-- Always close tags properly -->
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>

Browser Default Styling

Browsers apply default styling to unordered lists:

  • Disc bullet points (filled circles)
  • Left padding (usually around 40px)
  • Margin above and below the list
  • Nested lists use different bullet styles

You can override these defaults with CSS, but be mindful of accessibility when removing visual indicators.

Key Takeaways

  • <ul> creates an unordered (bullet point) list
  • <li> represents each list item
  • Use unordered lists when order doesn't matter
  • List items can contain any HTML content
  • All content inside ul must be wrapped in li elements
  • Screen readers announce lists for better accessibility
  • Default styling includes disc bullets and left padding
  • Commonly used for navigation, features, and collections

What's Next?

Now that you understand unordered lists, you're ready to learn about ordered lists. In the next lesson, we'll explore the ol element for creating numbered lists where sequence matters.

Know someone who'd find this guide helpful? Please share!

Previous
Embedding Content
Next
Ordered Lists

Never Miss a New HTML Tutorial

Join 1,000+ developers learning HTML step-by-step. Get new tutorials, tips, and exclusive resources delivered to your inbox - completely FREE.

You might also like

UI Components

Ready-made components for your projects

Developer Tools

Boost productivity with handy generators

HTML Game

Learn HTML concepts through interactive gameplay

Join Our Web Development Training Program

Master frontend & backend development with hands-on projects.

Menu

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data
Falytom logoFALYTOM

Learn technologies like HTML, CSS, JavaScript, React, NodeJS and more through interactive games, tutorials, components and free tools. Transform your businesses with AI chatbots, SEO-optimized websites, and professional development services.

© 2025 Tomilola Group
  • Facebook logo
  • Twitter logo
  • Instagram logo
  • LinkedIn logo
  • GitHub logo
  • YouTube logo