HTML <ul> Tag
Example: In this example, we have created an unordered list of computer parts using the <ul> tag.
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>
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 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
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.