HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tutorial

HTML Basics

Introduction to HTMLHTML EditorsHTML StructureHTML Elements & AttributesHTML HeadingsHTML ParagraphsHTML FormattingHTML CommentsHTML Styles

HTML Text and Links

HTML Text FormattingHTML Quotations & CitationsHTML LinksHTML Email Links

HTML Lists and Tables

HTML ListsHTML TablesTable Styling & Borders

HTML Images and Media

HTML ImagesHTML Picture ElementHTML AudioHTML VideoHTML Embed & Object

HTML Forms

HTML Forms OverviewHTML Form ElementsHTML Input TypesHTML Input AttributesHTML Form AttributesHTML Form Validation

HTML Layout

HTML Block vs Inline ElementsHTML Div & SpanHTML Semantic Layout TagsHTML Iframes

Advanced HTML

HTML Entities & SymbolsHTML EmojisHTML Head Element TagsHTML Meta Tags for SEOHTML Responsive Design

HTML References

HTML5 New TagsDeprecated TagsHTML Global AttributesEvent AttributesComplete HTML Tag ListComplete HTML5 ElementsHTML Tutorial PDF
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. HTML Lists

HTML Lists and Tables

HTML Lists

HTML Lists allow you to organize content in a structured way.
They are used for menus, steps, bullet points, or any grouped information. HTML provides three main types of lists: unordered, ordered, and description lists.

Unordered List (<ul>)

Use the <ul> tag for the list container and <li> for each item.

Unordered List Example

html

<ul>
  <li>HTML Basics</li>
  <li>CSS Styling</li>
  <li>JavaScript Introduction</li>
</ul>

Ordered List (<ol>)

An ordered list displays items with numbers or letters.
Use the <ol> tag for the container and <li> for items.

Ordered List Example

html

<ol>
  <li>Register an account</li>
  <li>Verify your email</li>
  <li>Start learning HTML</li>
</ol>

Optional attributes for <ol>:

  • type="A" → Uppercase letters (A, B, C)
  • type="a" → Lowercase letters (a, b, c)
  • type="I" → Uppercase Roman numerals (I, II, III)
  • type="i" → Lowercase Roman numerals (i, ii, iii)

Description List (<dl>)

A description list is used for terms and their descriptions.
It uses three tags: <dl> (list), <dt> (term), <dd> (description).

Description List Example

html

<dl>
  <dt>HTML</dt>
  <dd>HyperText Markup Language used for web pages.</dd>

  <dt>CSS</dt>
  <dd>Cascading Style Sheets used for styling HTML.</dd>
</dl>

Nesting Lists

You can create lists inside lists for hierarchical information.

Nesting Lists Example

html

<ul>
  <li>Fruits
    <ul>
      <li>Apple</li>
      <li>Banana</li>
    </ul>
  </li>
  <li>Vegetables
    <ul>
      <li>Carrot</li>
      <li>Spinach</li>
    </ul>
  </li>
</ul>

Best Practices

  • Always use <li> inside <ul> or <ol>.
  • Use <dl> for definitions, terms, or FAQs.
  • Nest lists carefully for clear structure.
  • Style lists using CSS for better appearance.

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

Conclusion

HTML Lists help structure content in bullet points, numbered steps, or definitions.
They improve readability, organization, and the overall user experience on your web pages.

PreviousHTML Email LinksNextHTML Tables