ul element | ul object
[This documentation is preliminary and is subject to change.]
Draws lines of text as a bulleted list.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 10.2
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
The TYPE attribute sets the list type for all ensuing lists unless a different type value is set.
The UL element inherits its line-height from the height of the font attribute for the BODY. For example, if the font-size attribute for the BODY is larger than the font-size attribute for the UL element, the list items in the UL are spaced according to the font-size of the BODY.
Examples
This example uses the UL element to create a bulleted list.
<ul> <li>This is the first bulleted item in the list.</li> <li>And this is the second bulleted item in the list.</li> </ul>
See also
Build date: 3/8/2012

