The list-style-type property defines the marker style for list items. It controls bullets on unordered lists and numbering styles on ordered lists.
01
Markers
Bullets & numbers.
02
ul & ol
Both list types.
03
disc
Default for ul.
04
decimal
Default for ol.
05
none
Hide markers.
06
Inherited
Set on parent.
Fundamentals
Introduction
The list-style-type property in CSS is used to define the appearance of the list item marker for ordered lists (<ol>) and unordered lists (<ul>). This property allows you to customize the bullets, numbers, or other markers that appear before each list item, enhancing the visual presentation of lists on your website.
Definition and Usage
Apply list-style-type on ul, ol, or individual li elements. Use keyword values like square, lower-alpha, or upper-roman to match your design. Pair it with list-style-position and list-style-image, or use the list-style shorthand.
💡
Beginner Tip
Unordered lists (ul) usually use shapes like disc or square. Ordered lists (ol) use counters like decimal or upper-roman.
Foundation
📝 Syntax
The syntax for the list-style-type property is simple and can be applied to list elements (<ul>, <ol>, <li>):
syntax.css
selector{list-style-type:type;}
Here, type specifies the marker type, which can be a predefined keyword such as disc, decimal, or none.
list-style-type: none removes visible markers while keeping the semantic list structure for accessibility.
A11y
♿ Accessibility
Use real list elements — Keep ul and ol markup even when markers are hidden with none.
Do not remove markers from true content lists without reason — Bullets and numbers help users scan items.
Screen readers still announce list length — Marker styling is mostly visual.
Choose readable counter styles — Very decorative numbering can confuse readers on long lists.
Nest lists properly — Use sub-lists for hierarchy instead of manual prefixes in text.
🧠 How list-style-type Works
1
You choose a marker keyword
Set list-style-type to values like square, decimal, or none.
CSS rule
2
Browser generates markers
Each list item gets a bullet, number, letter, or Roman numeral based on your chosen type.
Rendering
3
Inheritance applies to items
Setting the type on ul or ol styles all child list items unless overridden.
Cascade
=
•
Custom list presentation
Lists match your site design while staying semantic and accessible.
Compatibility
🖥 Browser Compatibility
The list-style-type property is widely supported across all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. This property has been part of CSS for a long time, so it works reliably across various browser versions.
✓ Universal · All browsers
Marker styles everywhere
list-style-type is one of the most reliable CSS properties for list styling.
The list-style-type property provides a simple yet effective way to customize the appearance of list markers on your website. Whether you’re aiming for a standard look with numbers and bullets or a more unique style with Roman numerals and square markers, this property gives you the flexibility to enhance the presentation of your lists.
Experiment with different values to find the perfect match for your website’s design. Start with the defaults (disc and decimal), then explore alphabetic and Roman styles for steps, outlines, and legal content.