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 `
-
Frontend
- HTML
- CSS
- onsubmit Attribute
- onclick Attribute
- JavaScript
-
Library/Framework
- ReactJS
- Hoisting
- Props
- ReactJS
`
**Output

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 `
- Subjects
- Mathematics
- Science
- Literature
- Programming Languages
- C
- Java
- Python
- Ruby
- Swift
- Computer Science Concepts
- Data Structures
- Algorithms
- Operating Systems
- Database Management
- Networking
- Web Technologies
- HTML
- CSS
- JavaScript
- React
- Angular
- Vue
- Bootstrap
`
**Output
