Unordered list syntax

This example shows the markup for a basic unordered list.

<ul><li>Unordered information</li>
        <li>Ordered information</li>
        <li>Terms and definitions</li></ul>

In HTML 4.01, the end tags for list items are optional, but in XHTML, all end tags are required. It is good practice to close all elements regardless of the version of HTML you are using.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.