HTML Beginner's Guide (3)

Source: Internet
Author: User
Tags definition compact
Beginner List Lists
HTML support is not numbered unnumbered, numbered numbered, and defines a definition of three lists. You can also nest lists, but do not nest too much, otherwise it will make readers feel less clear.

No numbered list unnumbered Lists

Make a numbered, bulletin-list,

Start with the start tag
    (unnumbered list denoted)
    Enter the
  • (list item) tag, followed by a separate item; No need to use
  • mark
    End the entire list with the
tag
The following is a list of three items:


  • apples
  • Bananas
  • Grapefruit


The output form is:

Apples
Bananas
Grapefruit
  • items can contain multiple paragraphs. Use paragraph marks

    indicate.

    Numbered list numbered Lists

    A numbered list (also known as a sequence table ordered list) is the same as a numbered list, with

      instead of
        . The same use
      • mark. The following HTML code:


        1. oranges
        2. Peaches
        3. grapes


        The resulting output is:

        Oranges
        Peaches
        Grapes
        Define List Definition Lists

        The definition list (encoded as
        ) usually contains alternating definitions of defined terms definition term (encoded as
        ) and definition definitions definition (encoded as
        ). A Web browser usually displays a definition description on a separate line.

        Here is an example of a definition list:


        NCSA
        NCSA, the national Center for Supercomputing applications,
        is located on the campus of the University of Illinois
        At Urbana-champaign.
        Cornell theory Center
        CTC is located on the campus of Cornell University in Ithaca,
        New York.


        The output form is:

        NCSA
        NCSA, the national Center for Supercomputing applications, are located on the campus of the University of Illinois in Urban A-champaign.
        Cornell theory Center
        CTC is located on the campus of Cornell University in Ithaca, New York.
        and
        items can contain multiple paragraphs (indicated by

        tags), lists, or other definition information.

        The COMPACT attribute may be used frequently, if your definition term is short. For example, if you want to display some computer options, they can be in the same row as the beginning of the definition.

        <DL compact>

        I.
        invokes NCSA Mosaic for Microsoft Windows using the
        Initialization file defined in the path
        -K
        invokes NCSA Mosaic for Microsoft Windows in kiosk mode


        The output form is:

        -I.
        Invokes NCSA Mosaic for Microsoft Windows using the initialization file defined in the path.
        -K
        Invokes NCSA Mosaic for Microsoft Windows in kiosk mode.
        Nested list nested Lists

        Lists can be nested. In each list item, you can also include multiple paragraphs, each containing a nested 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.