ul
The unordered list wrapper.
Learn Unordered Lists with practical examples for tables, lists, structured data relationships, accessibility, SEO and live practice.
HTML data structures
Use ul when the items belong together but changing their order does not change the core meaning. Features, benefits, tags, menu groups and requirements often fit this pattern.
A ul is not only a bullet style. It tells the browser that this is a collection of list items.
You can remove bullets or create custom markers with CSS while keeping the correct HTML structure.
The unordered list wrapper.
A single item in the list.
A list inside a list item.
CSS hook for styling list markers.
Syntax and structure
Put content inside li. If an item has subitems, nest a new ul inside that li.
<ul class="feature-list"> <li>Clear lesson structure</li> <li>Live code practice</li> <li>Production-focused examples</li> </ul>
<p>* Clear lesson structure</p> <p>* Live code practice</p> <p>* Production-focused examples</p>
Rules that matter
Tables and lists are small elements with big structural value. They help users scan, compare, follow steps and understand how pieces of information belong together.
If order is not important, ul is usually right.
Do not place random divs directly inside ul.
Lists scan better when items follow a similar sentence shape.
A nested list should be a real subcollection, not visual indentation.
Use ::marker, list-style or custom layout without faking the list.
A list item can contain paragraphs, but too much text may be better as sections.
Production thinking
This matters because unordered lists are simple, but they prevent content from becoming a wall of disconnected text.
A real ul communicates that the items form a group and announces the number of items in many assistive technologies.
Feature blocks, navigation menus and checklist cards often start as ul markup before CSS turns them into a polished interface.
Unordered lists are useful for scannable feature information, service details and concise summaries.
Live code lab
Edit the HTML or CSS, then use Run to refresh the preview. The preview is isolated, so links and forms stay inside this practice area.
Mini assignment
Practice assignment
Try it yourself
Self-check
Do not only read this page. Answer these questions out loud or write the answers in your own notes. If one answer feels vague, revisit the examples before moving on.