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

HTML list element

高洛峰
Release: 2016-11-01 15:20:14
Original
2019 people have browsed it

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>
    Copy after login
    <ol>
      <li>Coffee</li>
      <li>Tea</li>
      <li>Milk</li>
    </ol>
    Copy after login

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

    The above is a commonly used list. The

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