Ordered and Unordered List in HTML Example W3Schools Guide

Lists are an essential part of web design and HTML. They help structure and present content in an organized and easily digestible manner. Two primary types of lists are unordered and ordered. Let's explore both using examples from W3Schools.

HTML Lists- Ordered, Unordered and Definition Lists.
HTML Lists- Ordered, Unordered and Definition Lists.

Unordered lists, denoted by the '

    ' tag, are perfect for presenting information where order doesn't matter. Each list item is marked with the '
  • ' tag. They typically display with bullet points by default, but their style can be customized with CSS.

HOW TO ADD ORDERED OR UNORDERED LISTS IN HTML
HOW TO ADD ORDERED OR UNORDERED LISTS IN HTML

Unordered Lists on W3Schools

The W3Schools `

    ` example starts simple:

an orange background with some type of text and numbers in black on the bottom right corner
an orange background with some type of text and numbers in black on the bottom right corner
  1. HTML: <ul><li>Item one</li><li>Item two</li></ul>

The output is a bullet-pointed list:

an info sheet with the words ordered vs unordded lists
an info sheet with the words ordered vs unordded lists
  • Item one
  • Item two

Nested Unordered Lists

W3Schools also demonstrates nesting unordered lists:

Unordered HTML List - Choose List Items Marker
Unordered HTML List - Choose List Items Marker
  1. HTML: <ul><li>Item one<ul><li>Subitem one</li><li>Subitem two</li></ul></li></ul>

The result is a list with a sublist:

  • Item one
    • Subitem one
    • Subitem two
✅ Create Lists in HTML
✅ Create Lists in HTML

Ordered Lists

Ordered lists, marked with the '

    ' tag, present information in a specific order, usually with numbers or letters. They're ideal for step-by-step guides, lists with sequential importance, or organized data.

an image of a web page with the words ordered list in html
an image of a web page with the words ordered list in html
an image of a computer screen with the words ordered list and other items below it
an image of a computer screen with the words ordered list and other items below it
an image of a web page with the text'4 - un - ordered list tag '
an image of a web page with the text'4 - un - ordered list tag '
Flame Ignited! Elite Python, Java, JS Services: Spark Your Search – Order for Fiery Finishes!
Flame Ignited! Elite Python, Java, JS Services: Spark Your Search – Order for Fiery Finishes!
an image of a list with the words lists ordered list written in red and green
an image of a list with the words lists ordered list written in red and green
html list
html list
an image of a web page with the text'how to write a html list '
an image of a web page with the text'how to write a html list '
Mastering List Styling in CSS
Mastering List Styling in CSS
Complete Beginner HTML Master Notes
Complete Beginner HTML Master Notes
the basic html tag list is displayed in this screenshote screen graber, which shows
the basic html tag list is displayed in this screenshote screen graber, which shows
an image of a green background with red and blue arrows on it, including the words basic
an image of a green background with red and blue arrows on it, including the words basic
887 reactions · 135 shares | HTML5 Tags information 2026. #coding #webdevelopment✨ #htmlcssjavascript #programming | Premi Coding | Facebook
887 reactions · 135 shares | HTML5 Tags information 2026. #coding #webdevelopment✨ #htmlcssjavascript #programming | Premi Coding | Facebook
List of HTML Tags
List of HTML Tags
the list of html tags for different types of webpages and pages, with text overlaiding them
the list of html tags for different types of webpages and pages, with text overlaiding them
Veil Lifted! Prime Python, Java, JavaScript Expertise: Mystery Solved – Order for Clear Victories!
Veil Lifted! Prime Python, Java, JavaScript Expertise: Mystery Solved – Order for Clear Victories!
To Do List with HTML, CSS & JS
To Do List with HTML, CSS & JS
how to creat ordered list
how to creat ordered list
making html easy for you guysss
making html easy for you guysss
an image of a web page that has been modified
an image of a web page that has been modified
HTML Cheat Sheet 📄✨ Quick Guide for Beginners
HTML Cheat Sheet 📄✨ Quick Guide for Beginners

Ordered Lists on W3Schools

The basic ordered list example from W3Schools is:

  1. HTML: <ol><li>Item one</li><li>Item two</li></ol>

The output is a numbered list:

  1. Item one
  2. Item two

Customized List Styling with CSS

W3Schools shows how to use CSS to customize the appearance of ordered lists. For instance, the type of numbering can be changed:

  1. CSS: ol { list-style-type: uppercase-alpha; }

The result is an ordered list with uppercase alphabetic numbering:

  1. Item one
  2. Item two

Ordered List Attributes and Accessibility

W3Schools also covers list attributes (like 'start', 'reversed', and 'type'), and the importance of list accessibility, ensuring screen readers can interpret lists correctly.

Understanding and effectively utilizing ordered and unordered lists not only enhances your HTML and CSS skills but also improves the user experience on your webpage. Continue exploring and practicing with W3Schools tutorials to master these vital elements of web design.

Related Articles

Ppt Html5 W3schools Html 2 Column Layout Html Online Compiler W3schools Https //www.w3schools.com Html Compiler Www W3schools Com Html Css Html Visitor Counter Code W3schools W3 Html Tag List W3schools Html Input Checkbox W3schools Html Label Tag W3schools Html Website Layout