Home  >  Article  >  Web Front-end  >  HTML list element

HTML list element

高洛峰
高洛峰Original
2016-11-01 15:20:141976browse

HTML element classification-list element

  0.

    Element (unordered list): Defines an unordered list.

     

    Element (ordered list): Defines an ordered list.

     

  1. Element (list item): Defines the item of the list.
    <ul>
      <li>Coffee</li>
      <li>Tea</li>
      <li>Milk</li>
    </ul>
     
    <!--去除列表项前面的黑点-->
    <style>
        li {
            list-style-type:none;
        }
    </style>
    <ol>
      <li>Coffee</li>
      <li>Tea</li>
      <li>Milk</li>
    </ol>

     1.

    Element (definition list): defines the definition list.

     

    Element (definition title): Defines the name of the item in the definition list (that is, the term part).

     

    Element (definition definition): The definition part of the definition item in the definition list, that is, the explanation of the project name.
    <dl>
       <dt>计算机</dt>
       <dd>用来计算的仪器 ... ...</dd>
       <dt>显示器</dt>
       <dd>以视觉方式显示信息的装置 ... ...</dd>
    </dl>

    The above is a commonly used list. The

    , , and elements are not listed here due to poor browser compatibility.
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