Lists

HTML <ul> element

Build a form with the HTML form generator

Represents a list whose item order is not significant. Use li for individual items. Use a list when the items form a meaningful collection. Put each ordinary item inside li, including a nested list inside the li it belongs to. Use ol when sequence or rank matters. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<ul>  <li>Item</li></ul>

Return Value

HTMLUListElement

Content model: li elements and script-supporting elements.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <ul>      <li>Notebook</li>      <li>Pencil</li>    </ul>  </body></html>
HTML Reference