HTML li tag is placed inside the HTML ul tag for rendering the list items for HTML unordered bulleted lists. In the previous article about HTML ul tag for unordered list, we discussed about the type attribute of HTML ul tag. Type attribute defines the style of bullet associated with HTML unordered list. Type attribute of ul tag accepts 3 values as circle, disc and square. Here we will discuss about the HTML li tag along with its attribute similar to the attributes of <ul> tag. HTML li tag is also used as paired tag <li> and </li> inside the <ul> and </ul> tag to generate a bullet list item.
<ul>
<li>item 1</li>
</ul>
HTML li tag Attributes
HTML li tag has 1 attribute associated with HTML unordered list ul tag and 2nd attribute is associated with HTML ol tag:
<li type="circle">Circle bullet style</li>
<li type="disc">Disc bullet style</li>
<li type="square">Square bullet style</li>
Output:
Be the first to rate this post
Tags: html, html li tag, html ul tag, html unordered list, html unordered list bullets, html ul tag type attribute, html tutorials, html ol tag, html nested ol tag, html nested ul tag
10/11/2008 3:30:17 AM