<ul>: The UL Element

Last updated: 2026-10-13

<ul>The UL Element

The <ul> (unordered list) element defines a list of items without order, rendered with bullet points by default. Each item is a <li>. Unordered lists suit navigation menus and checklists.

CategoryLists
Content ModelZero or more <li>, script-supporting elements
Allowed ParentsAny element that accepts flow content
Content TagYes — requires closing </ul> tag
StatusStandard

📝 Syntax

<ul>
  <li>Item one</li>
  <li>Item two</li>
</ul>

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
<ul> ✓ v1 ✓ v12 ✓ v1 ✓ v1 ✓ v1
Supported in all major browsers

❓ FAQ

QIs li required inside ul?
AYes. The content model of <ul> only allows <li> (plus script-supporting elements); raw text or divs are invalid HTML. Use a div for a non-list container.
QCan ul be used for navigation menus?
AYes — <ul> + <li> + <a> is the standard navigation skeleton, ideally wrapped in <nav> for landmark semantics, with CSS removing the bullets and laying items horizontally. Screen readers announce 'list, N items', helping users anticipate menu length.
QWhich CSS removes the list bullets?
Aul { list-style: none; } does it in one line; add padding-left: 0 as well to remove the indent (browsers pad <ul> by default). Note that after removing the bullets, screen readers still announce it as a list — that is exactly the value of preserved semantics.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏