HTML & Web Development 3. HTML Lists 11 mins read 15,105 views

HTML Unordered Lists: UL Tag, Syntax, and Examples

An HTML unordered list is created using the tag, enclosing individual elements. Browsers render each item prefixed by a bullet marker by default. Unordered li...
Published: Nov 1, 2026Last Updated: Nov 21, 2026Curriculum: Class 12 / AP Physics / JEE-NEETReviewed by: OperateTools Editorial Board
Quick Summary & Direct Answer (AEO / GEO Extraction)

What is HTML Unordered Lists: UL Tag, Syntax, and Examples? An HTML unordered list is created using the tag, enclosing individual elements. Browsers render each item prefixed by a bullet marker by default. Unordered li...

Audience & Scope: Students, educators, and candidates preparing for academic examinations and technical assessments in Html & Web Development.
How do you create and customize unordered bulleted lists using the <ul> tag?
An HTML unordered list is created using the <ul> tag, enclosing individual <li> elements. Browsers render each item prefixed by a bullet marker by default. Unordered lists are widely used for feature bullet points, shopping lists, and website navigation menus.

Explanation & In-Depth Details

1) Basic Syntax: The list begins with <ul> and ends with </ul>. Every item inside must be enclosed within opening and closing <li> tags.

2) Marker Styles via CSS: While early HTML used the 'type' attribute, modern standards dictate configuring markers via the CSS 'list-style-type' property:
- 'disc' (default filled circle)
- 'circle' (hollow circle)
- 'square' (filled square)
- 'none' (removes bullets completely)

3) Custom Image and Emoji Markers: You can use CSS 'list-style-image: url('check.png')' or CSS '::marker' pseudo-element to render custom icons, emojis (e.g. ::marker { content: '🚀 '; }), or color-coded indicators.

4) Building Navigation Bars: Navbars are constructed with <nav><ul><li><a href="...">Home</a></li>...</ul></nav>. With CSS Flexbox (display: flex) and list-style: none, vertical lists convert into sleek horizontal menus.

5) Proper Nesting Rules: Sub-lists must always be nested inside a parent <li> tag, never directly between <li> elements.

Code Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Unordered Lists Showcase</title>
    <style>
        .custom-checklist { list-style: none; padding-left: 0; }
        .custom-checklist li::marker { content: '✔ '; color: #16a34a; font-weight: bold; }
        .horizontal-nav ul { list-style: none; display: flex; gap: 20px; padding: 0; }
        .horizontal-nav a { text-decoration: none; color: #2563eb; font-weight: 600; }
    </style>
</head>
<body>
    <nav class="horizontal-nav" aria-label="Main Menu">
        <ul>
            <li><a href="#home">Home</a></li>
            <li><a href="#services">Services</a></li>
            <li><a href="#pricing">Pricing</a></li>
            <li><a href="#contact">Contact</a></li>
        </ul>
    </nav>

    <h2>Software Features</h2>
    <ul class="custom-checklist">
        <li>Unlimited Cloud Storage</li>
        <li>256-bit AES End-to-End Encryption</li>
        <li>24/7 Priority Support</li>
    </ul>
</body>
</html>

Interview Question & Tips

Q1: How do you style only the bullet marker of an <li> element without affecting its text color?
A1: Use the CSS '::marker' pseudo-element (e.g. li::marker { color: #dc2626; font-size: 1.2em; }).

Q2: Why must nested lists be placed inside an <li> rather than between two <li> tags?
A2: HTML validators will report an error if an <ul> contains another <ul> as a direct child. The nested <ul> is content belonging to the parent <li> item.

Q3: How do screen readers announce unordered lists?
A3: Screen readers announce 'List with N items', informing the user of the scope of the list before reading out the individual list items.

Best Practices

Always nest subordinate lists inside <li> elements, and use CSS ::marker to customize bullet colors and styles cleanly.
Academic Standards & Verified Citations

This study reference for HTML Unordered Lists: UL Tag, Syntax, and Examples is curated and verified against recognized curriculum benchmarks, peer-reviewed textbooks, and official technical documentation:

HTML & Web Development