HTML - <ul> Tag


Description

The HTML <ul> tag is used for creating an unordered list.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML ul Tag</title>
   </head>

   <body>
      <p>Sports Club Games</p>
      <ul>
         <li>Cricket</li>
         <li>Football</li>
         <li>Hockey</li>
         <li>Badminton</li>
         <li>Squash</li>
      </ul>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <ul> tag also supports the following additional attributes −

Attribute Value Description
type disc
circle
square
Deprecated − Specifies the style of the bullet.
compact compact Deprecated − Defines if compact rendering is required.

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes
html_tags_reference.htm
Advertisements