This <ul> element creates an unordered (bulleted) list. Each item in the list is, in turn, created by the <li> element.
<ul> |
Yes | Yes | Yes | Yes | Yes |
The "compact" and "type" attributes are deprecated in HTML5.
Attribute | Value | Description |
---|---|---|
compact | compact | Not supported in HTML5. Set that the list should render smaller than normal |
type | disc square circle |
Not supported in HTML5. Set the marker type |
The <ul> tag supports the Global Attributes in HTML.
The <ul> tag supports the Event Attributes in HTML.
ul { display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1 em; margin-left: 0; margin-right: 0; padding-left: 40px; }
<html>
<body>
<ul>
<li>Africa</li>
<li>Antarctica</li>
<li>Asia</li>
<li>America</li>
<li>Europe</li>
</ul><!--from ww w. ja v a2s . co m-->
</body>
</html>