What is the html definition list tag?

青灯夜游
Release: 2023-01-03 09:24:08
Original
18956 people have browsed it

html defines list tags: 1. Unordered list tag "

    ", each list item starts with the "
  • " tag; 2. Ordered list "
      " , each list item starts with the "
    1. " tag; 3. Customized list "
      ", the list item starts with "
      ", and the definition of the list item starts with "
      " .

What is the html definition list tag?

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

HTML Unordered List

An unordered list is a list of items marked with bold dots (typically small black circles).

Unordered list uses

    tag
    <ul>
    <li>Coffee</li>
    <li>Milk</li>
    </ul>
    Copy after login

    The browser displays as follows:

    What is the html definition list tag?

    ##HTML ordered list

    Similarly, an ordered list is also a list of items, and the list items are marked with numbers. The ordered list starts with the
      tag. Each list item begins with a
    1. tag. [Related recommendations:

      HTML video tutorial]

      List items are marked with numbers.

      <ol>
      <li>Coffee</li>
      <li>Milk</li>
      </ol>
      Copy after login

      The browser displays as follows:

      What is the html definition list tag?

      HTML custom list

      The custom list is not just A list of items, but a combination of items and their comments.

      Custom lists start with a
      tag. Each custom list item begins with
      . The definition of each custom list item begins with
      .

      <dl>
        <dt>Coffee</dt>
        <dd>-Black hot drink</dd>
        <dt>Milk</dt>
        <dd>-White cold drink</dd>
      </dl>
      Copy after login
      The browser displays the following:

      What is the html definition list tag?

      For more programming-related knowledge, please visit:

      Programming Video! !

The above is the detailed content of What is the html definition list tag?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!