HTML <ul> Tag
In this article, we will know the HTML <ul> Tag & its implementation. The <ul> tag in HTML is used to define the unordered list item in an HTML document. It contains the list items <li> element. The <ul> tag requires an opening and closing tag. By using CSS style you can easily design an unordered list.
<ul> list of items </ul>
Accepted attribute: This tag contains two attributes which are listed below:
- HTML <ul> compact Attribute: It will render the list smaller.
- HTML <ul> type Attribute: It specifies which kind of marker is used in the list.
Note: The <ul> attributes are not supported by HTML 5.
Example: In this example, we have created an unordered list of computer parts using the <ul> tag.
Example 1: This example describes the Unordered List in HTML.
Example 2: Nested unordered list, a list inside other lists is known as a nested list.
Example 3: Complex nested unordered list.
- Google Chrome
- Internet Explorer
- Microsoft Edge 12 and above
- Firefox 1 and above