CKTIS / HTML
ul — unordered list
The `ul` element represents a list whose item order does not materially affect its meaning. Each list item is represented by `li`.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<ul>
<li>Item</li>
<li>Another item</li>
</ul>ul represents a list whose items can be rearranged without materially changing the document's meaning. When order matters, choose ol.
Its direct child elements may be li and script-supporting elements. The list may be empty. Both ul tags are required; the element supports global attributes.
Place a nested list inside the relevant li, not directly inside ul. Do not place ul inside p. The example presents two items: HTML and CSS.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Unordered list</title>
</head>
<body>
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
</body>
</html>Result
• HTML • CSS
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.