Nested List in HTML (original) (raw)

Last Updated : 23 Jul, 2025

A nested list in HTML is a list that contains other lists within its list items. This creates a hierarchical structure, where each sublist is indented to visually represent its relationship to the parent list item.

1. Nested Unordered List in HTML

An unordered list in HTML is a collection of items represented by bullet points, providing a flexible way to display information without a specific order.

HTML `

`

**Output

Screenshot-2024-02-09-132313

2. Nested Ordered List in HTML

In HTML, an ordered list organizes items in a numbered sequence, providing a structured way to present information.

HTML `

  1. Subjects
    1. Mathematics
    2. Science
    3. Literature
  2. Programming Languages
    1. C
    2. Java
    3. Python
    4. Ruby
    5. Swift
  3. Computer Science Concepts
    1. Data Structures
    2. Algorithms
    3. Operating Systems
    4. Database Management
    5. Networking
  4. Web Technologies
    1. HTML
    2. CSS
    3. JavaScript
      1. React
      2. Angular
      3. Vue
    4. Bootstrap

`

**Output

Screenshot-2024-02-09-133258