HTML <ul> Tag
Description
The <ul>
HTML element is used for specifying an unordered list (or un-numbered list). You use the <li>
tag to list each item in the list. If you need to display an ordered list, you will use the <ol>
tag.
Properties
- Permitted Parents
- Any element that accepts flow content
- Content
- One or more <li> elements
- Start/End Tags
- Start tag: required, End tag: required
Example
<ul>
<li>Mouse</li>
<li>Cat</li>
<li>Dog</li>
</ul>
Attributes
None
Global Attributes
The <ul>
tag also supports the Global Attributes in HTML5
Event Attributes
The <ul>
tag also supports the Event Attributes in HTML5
Browser Support
The following table will show you the current browser support for the HTML <ul>
tag.
Desktop | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
|
12 | 1 | 1 | 15 | 4 |
Tablets / Mobile | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
18 | 4 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023