HTML Learning Notes (list)

Source: Internet
Author: User

HTML List

The list in HTML is implemented using tags <ul> and <ol>, and different lines with tags <li> to implement <li> contain the contents of each row of the list. List contains sequence table <ol> and unordered list <ul>

Definition List

A custom list is not just a column of items, but a combination of items and their annotations.

The custom list starts with the <dl> tag. Each custom list item starts with <dt>. The definition of each custom list item starts with <dd>.

Instance

Different types of unordered lists

    <Body>    <h4>Disc bulleted List</h4>    <ultype= "disc">        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ul>    <h4>Circle bulleted List</h4>    <ultype= "Circle">        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ul>    <h4>Square bulleted List</h4>    <ultype= "Square">        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ul>            </Body>

Different types of ordered lists

<Body>    <h4>List of numbers</h4>    <ol>        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ol>    <h4>Alphabetical List</h4>    <oltype= "A">        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ol>    <h4>List of lowercase letters</h4>    <oltype= "a">        <Li>Apple</Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ol>        <h4>List of Roman alphabet:</h4>        <oltype= "I">             <Li>Apple</Li>             <Li>Banana</Li>             <Li>Lemon</Li>             <Li>Orange</Li>        </ol>      <h4>Lowercase Roman alphabet list:</h4>        <oltype= "I">             <Li>Apple</Li>             <Li>Banana</Li>             <Li>Lemon</Li>             <Li>Orange</Li>        </ol>        </Body>

Nested lists

<Body>    <h4>Nested lists</h4>    <ol>        <Li>Tea:<ul>             <Li>Black tea</Li>             <Li>Green tea</Li>         </ul>        </Li>        <Li>Banana</Li>        <Li>Lemon</Li>    </ol>            </Body>

Custom list

<Body>    <h4>Custom list</h4>    <DL>        <DT>Computer</DT>        <DD>Note: The machine used for calculation</DD>                <DT>Display</DT>        <DD>A device that visually displays information</DD>    </DL>    </Body>

The learning of HTML lists is here.

HTML Learning Notes (list)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.