<li> Tag in HTML

In this article i am going to explain about li tag in HTML
  • 1367
Definition

<li> tag is used to insert the list item in both ordered list or unordered list, you can use <ol> for ordered list and <ul> for unordered list.

Supporting Browsers

Internet Explorer, Mozilla Firefox, Google Chrome, Safari and Opera are the supporting browsers.

Example
 

 <html>

<head>

    <title></title>

</head>

<body>

    <oi>

<li>List Item1</li>

<li>List Item2</li>

</ol>

<ul>

<li>List Item1</li>

<li>List Item2</li>

</ul>

</body>

</html>

 Output

li.htm10.jpg

Further Readings

You may also want to read these related articles

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.