Home > Web Front-end > HTML Tutorial > Several ways to deeply analyze lists in html

Several ways to deeply analyze lists in html

醉折花枝作酒筹
Release: 2021-03-31 14:29:02
Original
3789 people have browsed it

In HTML, there are three list methods, namely ordered list, unordered list and definition list. Let’s follow the editor to take a look at these three lists.

Several ways to deeply analyze lists in html

one. Unordered lists

are marked with bold dots (typically small black circles). The list starts with the

    tag. Each list item begins with
  • .
    <ul>
      <li>HTML5是HTML5即超文本标记语言或超文本链接标示语言的第五个版本.目前广泛使用的是HTML4.01。</li>
      <li>HTML5草案的前身名为Web Applications 1.0。</li>
      <li>2004年被WHATWG提出。</li>
      <li>2007年被W3C接纳,并成立了新的HTML5工作团队。</li>
      <li>2008年1月22日,第一份正式草案公布。</li>
    </ul>
    Copy after login

    Result:

    Several ways to deeply analyze lists in html

    II. Ordered lists

    are marked with numbers. The list starts with the

      tag. Each list item starts with a
    1. tag and is numbered starting from 1 by default.

      <ol>
        <li>HTML5是HTML5即超文本标记语言或超文本链接标示语言的第五个版本.目前广泛使用的是HTML4.01。</li>
        <li>HTML5草案的前身名为Web Applications 1.0。</li>
        <li>2004年被WHATWG提出。</li>
        <li>2007年被W3C接纳,并成立了新的HTML5工作团队。</li>
        <li>2008年1月22日,第一份正式草案公布。</li>
      </ol>
      Copy after login

      The output content is:

      Several ways to deeply analyze lists in html

      3. A definition list

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

      The list starts with the

      tag. Each custom list item begins with
      . The definition of each custom list item begins with
      .

      <dl>
              <dt>html5</dt>
              <dd>html5的历史</dd>
              <dt>
                  HTML5是HTML5即超文本标记语言或超文本链接标示语言的第五个版本.目前广泛使用的是HTML4.01。
              </dt>
              <dl>
                  HTML5草案的前身名为Web Applications 1.0。
              </dl>
              <dt>
                  2004年被WHATWG提出。
              </dt>
              <dl>
                  2007年被W3C接纳,并成立了新的HTML5工作团队。
              </dl>
              <dl>
                  2008年1月22日,第一份正式草案公布。
              </dl>
          </dl>
      Copy after login

      The result is:

      Several ways to deeply analyze lists in html

      Recommended tutorial: "html video tutorial"

The above is the detailed content of Several ways to deeply analyze lists in html. 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