Computer Science, asked by harshitmyson, 2 months ago


The tag used to define the individual list items in the ordered or unordered list.

Answers

Answered by anindyaadhikari13
3

Answer:

  • The tag used to define the individual list items in the ordered list or unordered list is - <li>

Explanation:

<li> tag stands for list items. It defines the item of the list. The list items are written after <li> tag. Browsers indent the list by default.

<li> tag is used in both ordered list and unordered list.

Example:

Here is a simple example,

<!DOCTYPE html>

<html>

  <head>

     <title>List Example.</title>

  </head>

  <body>

     <h5>Fruits: </h5>

     <ol>

        <li>Mango.

        <li>Guava.

        <li>Apple.

        <li>Banana.

     </ol>

  </body>

</html>

Output is:

Fruits:

  1. Mango.
  2. Guava.
  3. Apple.
  4. Banana.

The above c∅de demonstrates the use of <li> tag.

See the attachment for output.

Attachments:
Answered by ujjwalkant321
0

Answer:

li tag

Explanation:

Similar questions