" corresponds to each definition of the definition item, and the custom list is defined with "
"."/> " corresponds to each definition of the definition item, and the custom list is defined with "
".">

Home >Web Front-end >HTML Tutorial >In html language, what are the three commonly used lists?

In html language, what are the three commonly used lists?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-02 17:40:1216785browse

Commonly used lists are: 1. Ordered list, the items are included in the li tag pair, and are defined with ol; 2. Unordered list, the items are included in the li tag pair, and are defined with ul; 3. Self Defined list, items are included in dt tag pairs, "

" corresponds to each definition of the defined item, custom list is defined with "
".

In html language, what are the three commonly used lists?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Ordered list, the list items are contained in the

  • tag pair, the ordered list is defined with
      , and there are numbers or letters indented before the items

      Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside list items.

      For example:

      <ol>
      <li>Coffee</li>
      <li>Milk</li>
      </ol>

      Effect:

      In html language, what are the three commonly used lists?

      Unordered list, the list items are contained in the

    1. tag In the center, the unordered list is defined with
        , and the items are indented

        Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside the list items.

        For example:

        <ul>
        <li>Coffee</li>
        <li>Milk</li>
        </ul>

        Effect:

        In html language, what are the three commonly used lists?

        Customized list, the list items are included in the

        tag In the center,
        each definition corresponding to the definition item, the custom list is defined with
        , and the item is preceded by a symbol indent

        list item Paragraphs, line breaks, pictures, links, other lists, etc. can be used internally.

        For example:

        <dl>
        <dt>Coffee</dt>
        <dd>Black hot drink</dd>
        <dt>Milk</dt>
        <dd>White cold drink</dd>
        </dl>

        Effect:

        In html language, what are the three commonly used lists?

        ##Extension:

        List tag

        In html language, what are the three commonly used lists?

        Recommended learning:

        html video tutorial

        The above is the detailed content of In html language, what are the three commonly used lists?. 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