龙骨荒野所有副本:【HTML教程】HTML 初学者指南(3)

来源:百度文库 编辑:中财网 时间:2024/04/30 03:22:07
列表Lists
HTML 支持不编号 unnumbered, 编号numbered, 和定义definition 三种列表. 你也可以嵌套列表,
但是不要嵌套过多,否则会使读者感到不清晰。
不编号列表Unnumbered Lists
制作一个不编号的,公告式列表,
用开始标记
    ( unnumbered list 的简记) 开始
    输入
  • (list item) 标记,后面跟独立的项; 不需使用
  • 标记
标记结束整个列表
下面是一个有三个项的列表:

  • apples
  • bananas
  • grapefruit

输出形式为:
apples
bananas
grapefruit
  • 项可以含有多个段落. 用段落标记

    指明.
    编号列表Numbered Lists
    编号列表 (也称为 有序列表ordered list) 和不编号列表相同, 只是用

      代替
        . 各项同样用
      • 标记. 下面的 HTML
        代码:

        1. oranges
        2. peaches
        3. grapes

        产生的输出为:
        oranges
        peaches
        grapes
        定义列表Definition Lists
        定义列表 (编码为
        ) 通常含有交替出现的 定义术语definition term (编码为
        ) 和定义描述definition
        definition (编码为
        ). Web 浏览器通常另起一行显示定义描述.
        下面是一个定义列表的例子:

        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.

        输出形式为:
        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.
        项可以包含多个段落 (用

        标记指示), 列表, 或其他的定义信息.
        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

        输出形式为:
        -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 Lists
        列表可以嵌套. 在每个列表项中,你还可以含有多个段落,每个段落含有嵌套列表.
        ',1)">
           kairry图书馆欢迎您!