Home  >  Article  >  Web Front-end  >  How to add list items in HTML?

How to add list items in HTML?

PHPz
PHPzforward
2023-09-21 14:05:021593browse

How to add list items in HTML?

HTML

  • tag is used to add ordered list items, unordered list items, directory lists and menu lists. The tag also supports the following additional attributes -##TypeA##DeprecatedValue > tbody>Example
    Attribute

    Value

    Description

    a

    I

    i

    1

    Disk Square Circle

    - Specify the type of the list

    Number

    Specify the value of the list item

    You can try running the following code to add list items in HTML-

    <!DOCTYPE html>
    <html>
       <head>
          <title>HTML li Tag</title>
       </head>
       <body>
          <p>Rank</p>
          <ul>
             <li>India</li>
             <li>Australia</li>
             <li>South Africa</li>
          </ul>
       </body>
    </html>

  • The above is the detailed content of How to add list items in HTML?. For more information, please follow other related articles on the PHP Chinese website!

    Statement:
    This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete