Home > Web Front-end > Front-end Q&A > What is li in html

What is li in html

青灯夜游
Release: 2023-02-27 15:30:21
Original
21025 people have browsed it

In HTML, the full English name of li is "list item", which means "list item". It is an element tag that defines a list item. The syntax is "

  • list item content
  • ";"
  • " tag can be used in ordered list "
      " and unordered list "
      ".
  • What is li in html

    The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer. The full English name of

    li is "list item", which means "list item".

    What is li in html

    ##In HTML,
  • is an element tag that defines a list item, starting with
  • and ending with tag can be used in ordered lists (
      ) and unordered lists (
      ).

      The
    • list items in the ordered list are marked by numbers by default, and the
    • list items in the unordered list are marked by bold dots (typical small black circles) by default. However, you can use CSS to define the types of lists and list items.

      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>
      Copy after login

      What is li in html

      Recommended tutorial: "

      html video tutorial"

    The above is the detailed content of What is li in html. For more information, please follow other related articles on the PHP Chinese website!

  • Related labels:
    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template