Home  >  Article  >  Web Front-end  >  How to use html li tag

How to use html li tag

藏色散人
藏色散人Original
2019-05-28 09:44:367433browse

html The li tag is used to define list items. The

  • tag can be used in ordered lists (
      ) and unordered lists (
      ). Please use CSS to define lists and list items. type.

      How to use html li tag

      #html How to use the li tag?

      Function: Define list items.

      Note: The

    • tag can be used in ordered lists (
        ) and unordered lists (
        ).

        Note: Please use CSS to define the types of lists and list items.

        html li tag usage example

        <html>
        <body>
        <p>有序列表:</p>
        <ol>
          <li>打开冰箱门</li>
          <li>把大象放进去</li>
          <li>关上冰箱门</li>
        </ol>
        <p>无序列表:</p>
        <ul>
          <li>雪碧</li>
          <li>可乐</li>
          <li>凉茶</li>
        </ul>
        </body>
        </html>

        Effect output:

        How to use html li tag

  • The above is the detailed content of How to use html li tag. For more information, please follow other related articles on the PHP Chinese website!

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Previous article:How to use html ins tagNext article:How to use html ins tag