<li> List tag in HTML - HTML Tutorial




li list tag in html

li list tag in html

  • <li> tag is defined as the list of the items.
  • Mostly <li> tag is used in <ordered list>, <unordered list>, <menu list>.
  • It has two attributes they are value and type.
  • Value is said to be number and type has 1, a, A, I, i, disc, square, circle.
  • It supports Global and Event Attributes.

Syntax for <li> tag :

<li> list item... </li>

Sample coding for <li> tag:

 Tryit<!DOCTYPE html>
  <html>
    <body>
       <h3>List of Wikitechy Tutorials</h3>
       <ul type="disc"> 
          <li>WIKITECHY ANGULAR JS</li>
          <li>WIKITECHY HTML</li>
          <li>WIKITECHY CSS</li>
       </ul>
    </body>
  </html>

Code Explanation for <li> tag :

Code Explanation for <li> tag
  1. <li> tag is given for the content that will be displayed in list.

Output for <li>Tag :

Output for <li> tag

  1. Here the output shows the content in list.

Attributes of <li>tag:

Attribute Value HTML4 HTML5 Description
Type
1
A
a
I
i
disc
square
circle
Yes No Used to define which kind of bullet point will be used.
Value number Yes Yes Specifies the value of a list item.

Browser support for <li> tag:

Yes Yes Yes Yes Yes

Related Searches to list tag in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×