HTML <ul> Tag

Advertisements


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 following result:

Sports Club Games

  • Cricket
  • Football
  • Hockey
  • Badminton
  • Squash

Global Attributes

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

Specific Attributes

The HTML <ul> tag also supports following additional attributes:

AttributeValueDescription
typedisc
circle
square
Deprecated-Specifies the style of the bullet.
compactcompactDeprecated-Defines if compact rendering is required.

Event Attributes

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

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm