<li> tag in HTML

The <li> tag stands for list item. The <li> tag is used to defines a list item in document.

Important Description

  • Inserted the text contents between the start and end tags of list.
  • The <li> tag is used in ordered lists <ol>, unordered lists <ul>, and in menu lists <menu>.
  • Open and close tag required of <li>.

Example of <li> tag

Example Result Look Like

  • Apple
  • Green Apple
  • Banana
  • Grapes

<li> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<li> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "type" attribute is not supported in HTML5:

Attribute Value Description
type circle
square
disc
1
A
a
I
i
Defines which kind of bullet point will be used
value number Defines the value of a list item (only for <ol> lists).

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)