nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/Lists

Ordered, unordered and description lists, and why list markup beats a pile of divs.

8 QuestionsBeginnerMedium Priority ~7 min read

HTML provides three kinds of lists: unordered (ul) for items where order doesn't matter, ordered (ol) for sequences where it does, and description lists (dl with dt and dd) for term-and-definition or key-value pairs. Only li elements should be direct children of ul and ol, and lists can be nested by placing a new list inside an li. The ol element also supports attributes like start, reversed and type to control numbering.

Lists matter beyond bullets: screen readers announce how many items a list has and let users jump between them, which is why navigation menus are conventionally built as a ul of links. A frequent mistake is using list tags purely for indentation, or building a 'list' out of divs and losing that built-in semantics. Remember that bullet appearance is a CSS concern (list-style), so removing bullets doesn't mean you should stop using a list.

What you'll walk away knowing

When to use ul, ol and dl, and what each one communicates
The valid structure of lists, including nesting and which children are allowed
Attributes such as start and reversed on ordered lists
Why navigation menus are marked up as lists and how list semantics help assistive technology
1Difference between ordered and unordered lists?Beginner2What is the <dl> tag used for ?Beginner3Can you nest lists in HTML? How?Beginner
All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.