6 out of 11 rated this helpful - Rate this topic

ul element | ul object

[This documentation is preliminary and is subject to change.]

Draws lines of text as a bulleted list.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 10.2

Standards information

HTML information

Closing Tagrequired
CSS Displayblock

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     ul

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

li

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ