Home  >  Article  >  Web Front-end  >  What element is the li tag?

What element is the li tag?

云罗郡主
云罗郡主Original
2019-02-01 16:49:1419995browse

What element is the li tag?

What element is the li tag?

The li tag is called list item. It is an element tag in the HTML language and belongs to the list tag. It starts with

  • ends. The
  • tag can be used in ordered lists (
      ) and unordered lists (
      ). [Recommended tutorial: HTMLTutorial]

      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 example

        
        
        

        有序列表:

        1. 打开冰箱门
        2. 把大象放进去
        3. 关上冰箱门

        无序列表:

        • 雪碧
        • 可乐
        • 凉茶


  • The above is the detailed content of What element is the 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