Learn How to Create Ordered, Unordered, and Nested Lists in HTML

image of blog Mukesh Saini

HubSpot CMS Developer

1 Minutes Read

Listen to the Blog

Organize content efficiently using lists in HTML for clear readability and structure.

Unordered Lists

Use unordered lists for items without a specific order.

  • HTML Basics
  • CSS Fundamentals
  • JavaScript Essentials
  • <ul> Container for unordered list
  • <li> List item
  • Default bullet style: •

Ordered Lists

Use ordered lists when sequence matters.

  1. Plan the website structure
  2. Write HTML markup
  3. Style with CSS
  • Default numbering: 1, 2, 3…
  • You can change numbering style with type attribute:
  1. Step 1
  2. Step 2

Nested Lists

Combine lists for hierarchical content:

  • Frontend
    • HTML
    • CSS
    • JavaScript
  • Backend
    • Node.js
    • Python
  • Indentation improves readability
  • Nested lists are ideal for multi-level menus or structured content

Visual Styling for Lists

Use CSS to style bullets, numbers, and spacing:

ul { list-style-type: square; margin-left: 20px; } ol { list-style-type: upper-roman; }

Improves visual hierarchy and user experience

I'm Mukesh Saini, a seasoned HubSpot CMS Developer specializing in custom templates, seamless integrations, and high-performing digital experiences. Having honed his skills over several years in the industry, i possess a deep understanding of HubSpot's capabilities.

HubSpot CMS Developer

Frequently Asked Questions

Can I mix <ol> and <ul> in nested lists? +
Yes! you can combine any list types for complex hierarchies.
How can I remove bullets from a list? +
Use CSS: ul { list-style-type: none;}
Can I use numbers instead of bullets in <ul>? +
Not directly use <ol> for numbers, or style <ul> with CSS counters.
Are nested lists accessible? +
Yes! properly nested <ul> and <ol> are screen-reader friendly.
cm-vector

Have a specific need or challenge in mind? Let’s discuss how we can support your goals.

Get Started Today

Ready to streamline your Hubspot CRM, website, or RevOps !