Bullet Point HTML: List Code, Entities and CSS (2026)

November 11, 2026 · 10 min read

Bullet Point HTML: Code for Bulleted and Numbered Lists

Bullet point HTML comes in two forms. For a real list, wrap each item in <li> inside a <ul> (bullets) or <ol> (numbers), and the browser draws the markers. For a single bullet character in a line of text, type the entity &bull;. This page gives you copy-ready code for both, plus the CSS that restyles the marker.

How Do You Add Bullets in HTML?

You add bullets by putting list items inside an unordered list. <ul> stands for unordered list, and each <li> is one item. The browser draws a filled disc in front of every item and indents the block, so you never type the bullet yourself.

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

That's the whole bullet point HTML code for a basic list. It renders as three indented lines, each starting with a solid round bullet. One rule trips people up: an <li> belongs directly inside a <ul>, <ol> or <menu>. Don't wrap items in a <div> or put a <p> between the list tag and its items. Keep the contents of an item inside its <li> instead.

Use <ul> when the order doesn't matter, like a packing list or a set of features. If reordering the items would change the meaning, you want a numbered list. For terms paired with descriptions, there's a third list type, the HTML description list.

Ordered List HTML Code: Numbers, Letters and Roman Numerals

Swap <ul> for <ol> and the browser numbers the items 1, 2, 3. This ordered list HTML code is what you reach for with steps, rankings and anything a reader follows in sequence.

<ol>
  <li>Preheat the oven</li>
  <li>Mix the batter</li>
  <li>Bake for 25 minutes</li>
</ol>

Four attributes on <ol> and <li> control the numbering. All four are current, valid HTML, as MDN's ol reference shows:

AttributeGoes onWhat it doesExample
type<ol>Counter style: 1, a, A, i or Itype="A" gives A, B, C
start<ol>First number, always written as an integerstart="4" begins at 4, or at D with type="A"
reversed<ol>Counts down instead of up3, 2, 1
value<li>Sets this item's number; the next items continue from itvalue="10"

Here's a list that counts down in Roman numerals from five:

<ol type="I" start="5" reversed>
  <li>Fifth place</li>
  <li>Fourth place</li>
  <li>Third place</li>
</ol>

It renders V, IV and III. Notice that start="5" is a plain number even though the markers are Roman numerals, so you'd never write start="V".

start also fixes a common layout problem. Say a tutorial has steps 1 and 2, then a code sample, then steps 3 and 4. An <ol> accepts only <li> children, so unless you tuck the code inside step 2's <li>, you end up with two lists. Put start="3" on the second <ol> and the numbering carries on where the first one stopped.

Nesting One HTML List Inside Another

To build a sub-list, put a complete <ul> or <ol> inside an <li>, after that item's text. The inner list then belongs to its parent item, which is what screen readers announce and what the indentation shows.

<ul>
  <li>Fruit
    <ul>
      <li>Apples</li>
      <li>Pears</li>
    </ul>
  </li>
  <li>Vegetables</li>
</ul>

The common mistake is closing </li> before the inner list, so the nested <ul> sits beside the items instead of inside one. Browsers often display that version the same way, but it's invalid HTML and the parent-child link is lost.

You'll also notice the marker change by itself. The default browser stylesheet in the HTML spec gives top-level bullets a disc, the second level a hollow circle and the third level and deeper a square. Numbered lists don't change style when nested. Each <ol> starts again at 1.

Styling Bullet Point HTML With CSS list-style-type

The bullet's shape comes from the CSS property list-style-type, not from HTML. Old tutorials put a type attribute on <ul>, but the HTML standard lists type on ul as obsolete. Browsers still honour <ul type="square">, so it's a fallback when you can't add CSS, but validators flag it. Style the marker in CSS instead.

ul.square   { list-style-type: square; }
ul.circle   { list-style-type: circle; }
ol.letters  { list-style-type: lower-alpha; }
ol.numerals { list-style-type: upper-roman; }
ol.padded   { list-style-type: decimal-leading-zero; }

disc is the default for <ul> and decimal for <ol>. Beyond the keywords above, MDN's list-style-type page covers dozens of counter styles, including lower-greek, armenian and cjk-decimal.

Two related properties are handy. list-style-position: inside moves the marker into the text box, so wrapped lines start under the bullet rather than under the text. The list-style shorthand sets type, position and image in one line, as in list-style: square inside.

Custom Bullets With ::marker, Symbols and Images

When none of the keywords fit, you have three ways to draw your own bullet. Pick based on how much control you need.

/* 1. A string as the marker */
ul.checks { list-style-type: "\2713\20"; }

/* 2. Recolor or resize the existing marker */
ul.brand li::marker { color: #d9480f; font-size: 1.2em; }

/* 3. An image as the bullet */
ul.stars { list-style-image: url("star.svg"); }

The first rule replaces the disc with a check mark (\2713 is the CSS escape for U+2713), followed by \20, an escaped space for breathing room. A plain space typed right after a hex escape only ends the escape and is dropped, so it adds no gap. String values work in current Chrome, Firefox and Safari.

The ::marker pseudo-element accepts only a short list of properties: color, font properties, content, white-space and a few others. Margins and backgrounds don't apply. Safari is the catch: according to MDN's compatibility data, it supports only color and font-size on ::marker, so test there before you rely on content.

list-style-image is the least flexible option because you can't size or align the image. We prefer the older pattern when you need pixel control: set list-style: none, then draw the bullet with li::before and content: "\2022", which you can position like any other box.

How Do I Write a Bullet Mark in HTML?

To type the bullet character itself, use the named entity &bull; or a numeric reference. They all produce U+2022 BULLET:

You typeKindWhere it works
&bull;Named entityHTML
&#8226;Decimal referenceHTML
&#x2022;Hex referenceHTML
"\2022"CSS escapeThe CSS content property
&middot;Middle dot, U+00B7HTML, for a smaller dot

The middle dot is the right pick for inline separators such as Home &middot; Blog &middot; Tools, which displays as three words split by small centered dots. Our reference to Unicode dot and bullet characters lists the look-alike code points.

For a row of links, you can get the same look and keep real list markup. Lay the items out in a row and let CSS insert the dot between them:

ul.inline { list-style: none; padding-left: 0; }
ul.inline li { display: inline; }
ul.inline li + li::before { content: " \00B7\20"; }

The li + li selector skips the first item, so the dot only appears between items, never before the first one. The trailing \20 is there for the same reason as in the check mark rule: a plain space after \00B7 would be swallowed.

To type the character directly instead, press Option+8 on a US Mac layout or Alt+0149 on a Windows numeric keypad. Our bullet point keyboard shortcut guide has the keys for laptops, Linux and phones.

A typed bullet is the wrong tool for a list, though. Screen readers read &bull; Coffee <br> lines as ordinary text, so listeners don't hear that a list started or how many items it has. Keep the character for decoration and inline separators, and use <ul> whenever the content is a list.

Removing Bullets Without Losing List Semantics

Navigation menus and card grids are often lists with the bullets hidden. Two declarations do it: list-style: none removes the marker, and padding-left: 0 removes the indent the browser adds for it.

<ul class="plain" role="list">
  <li><a href="/">Home</a></li>
  <li><a href="/blog">Blog</a></li>
</ul>
.plain { list-style: none; padding-left: 0; margin: 0; }

The role="list" is there for Safari. As MDN's list-style page explains, Safari doesn't expose a list with list-style: none as a list in the accessibility tree unless it sits inside <nav>. WebKit treats this as intentional, not a bug. Adding role="list" brings the semantics back without changing how it looks.

Markdown Lists Compile to the Same HTML Tags

If you write in Markdown, you're already producing this bullet point HTML. A line that starts with a hyphen becomes an <li> inside <ul>, and a number followed by a period becomes an item inside <ol>. Starting at a number other than 1 sets the start attribute.

- Passport
- Charger

3. Preheat the oven
4. Mix the batter

A CommonMark parser such as marked turns that into a <ul> with two <li> items, followed by an <ol start="3"> with two more. The syntax rules for nesting, markers and task lists live in our Markdown lists guide.

Try it below. The preview draws a bulleted list and a list numbered from 3, and Export as HTML in the toolbar's Download/Export menu gives you the markup behind them.

Packing list

  • Passport
  • Charger
  • Snacks

Recipe steps

  1. Preheat the oven
  2. Mix the batter
  3. Bake for 25 minutes
23 words127 characters11 lines
Markdown

The limitation: Markdown has no syntax for type, reversed or a custom marker. For those, write the raw HTML list, or convert first and edit the output. The Markdown to HTML converter runs in your browser with no usage limit. To go the other way, paste HTML into the HTML to Markdown tool. For a long list of plain lines, the list generator turns them into bulleted, numbered or task lists, with sorting and deduping.

Quick Answers About HTML Bullets

Bullet point HTML comes down to one choice. If the content is a list, use <ul> or <ol> with <li> and style the markers in CSS. If you need one dot in a line of text, type &bull; or &middot;. To skip writing tags by hand, draft your list in Markdown in the editor, which shows a live preview, then convert it to HTML.