How to make a list in HTML
<ul>, <ol> and <li>, nested lists, changing or removing bullets, starting numbers at any value, side-by-side menus, and fixes when bullets disappear.
To make a bulleted list in HTML, put each item in <li> inside <ul>: <ul><li>Milk</li><li>Eggs</li></ul>. For a numbered list, use <ol> instead of <ul>. Browsers add the bullets or numbers and the indent for you.
Bulleted list: <ul>
- ✓<ul> means unordered list: the order does not matter, so each item gets a bullet.
- ✓Every item goes in its own <li>…</li>. Text placed directly inside <ul> without <li> is invalid and shows without a bullet.
- ✓An item can hold more than text: a link, an image, a paragraph or another list.
Numbered list: <ol>
- ✓<ol> means ordered list: steps, rankings, anything where position matters. Items are numbered 1, 2, 3.
- ✓Start at another number: <ol start="5">.
- ✓Count down: <ol reversed>.
- ✓Letters or Roman numerals: <ol type="a">, type="A", type="i" or type="I".
- ✓Set one item's number: <li value="10">; the items after it continue from 11.
Nested lists
Put the inner list inside an <li>, after that item's text: <ul><li>Fruit<ul><li>Apples</li><li>Pears</li></ul></li><li>Bread</li></ul>. The inner list is indented one level and gets a different bullet (circle, then square). Placing the inner <ul> between two <li> tags instead of inside one is the most common mistake; it still shows but is invalid and can break spacing.
Change or remove the bullets
- ✓Bullet shape: ul { list-style-type: square; } (also disc, circle, none). For <ol>: decimal, lower-alpha, upper-roman, decimal-leading-zero.
- ✓Emoji or any character: ul { list-style-type: "✓ "; }.
- ✓Bullet color: li::marker { color: #2563eb; }.
- ✓Remove bullets and the indent: ul { list-style: none; padding-left: 0; margin: 0; }.
- ✓Less or more indent: change padding-left on the <ul> or <ol> (browsers default to 40px).
- ✓Space between items: li { margin-bottom: 8px; }.
Side-by-side lists for menus
Navigation menus are usually a <ul> of links laid out in a row: nav ul { list-style: none; display: flex; gap: 16px; padding: 0; }. Each <li> holds one <a>. See how to add a link in HTML for the link itself.
Description list: <dl>
For terms and their meanings, such as a glossary or a spec sheet, use <dl> with <dt> for the term and <dd> for the description: <dl><dt>Plan</dt><dd>Free</dd></dl>. It shows with no bullets and the description indented.
When bullets or numbers do not show
- ✓A CSS reset removed them: Tailwind and many resets set list-style: none on every list. In Tailwind add list-disc pl-5 (or list-decimal pl-5) to the <ul> or <ol>.
- ✓The bullets are outside a box with overflow hidden or zero padding: add padding-left, or list-style-position: inside;.
- ✓The <li> is set to display: flex or block: markers only draw on list-item display. Keep display: list-item, or add the bullet with ::before.
- ✓An unclosed <li> or <ul>: later content joins the list. Check each opening tag has its closing tag.
- ✓Cached file: reload with Ctrl+Shift+R (Cmd+Shift+R on a Mac).
Pages made with AI tools
Pages from Claude, ChatGPT and other tools usually build lists with Tailwind classes: list-disc, list-decimal, list-none, list-inside, pl-5 (indent) and space-y-2 (gap between items). If the bullets vanished, the list is missing list-disc; add it to the <ul> rather than writing new CSS.
Share the page as a link
With FileShare Pro you upload the .html file from the dashboard, copy the link and send it; it opens as a page in any browser and the person opening it needs no account. To change the list after you send it, edit the file and upload it to the same link. Related: how to bold text in HTML and how to make a line break and add space in HTML. Sign up free to share your first page.
Frequently asked
Wrap the list in <ul> and each item in <li>: <ul><li>First</li><li>Second</li></ul>. The browser adds a bullet and an indent to each item.
<ul> is an unordered list with bullets; <ol> is an ordered list with numbers. Use <ol> when the order matters, such as steps or a ranking.
Put the second <ul> or <ol> inside an <li> of the first list, after that item's text. The inner list is indented and gets its own bullet style.
Add list-style: none; to the <ul> in CSS, and padding-left: 0; to remove the indent. In Tailwind, use the class list-none.
Drop the file, copy the link — live in seconds, free plan included.
Start sharing free