HTML 初學(xué)者指南

2017-02-26    分類: 網(wǎng)站建設(shè)

 列表Lists
HTML 支持不編號 unnumbered, 編號numbered, 和定義definition 三種列表. 你也可以嵌套列表, 但是不要嵌套過多,否則會使讀者感到不清晰。

不編號列表Unnumbered Lists

制作一個不編號的,公告式列表,

用開始標(biāo)記

    ( unnumbered list 的簡記) 開始
    輸入
  • (list item) 標(biāo)記,后面跟獨立的項; 不需使用
  • 標(biāo)記
標(biāo)記結(jié)束整個列表
下面是一個有三個項的列表:


  • apples
  • bananas
  • grapefruit

輸出形式為:

apples
bananas
grapefruit

  • 項可以含有多個段落. 用段落標(biāo)記

    指明.

    編號列表Numbered Lists

    編號列表 (也稱為 有序列表ordered list) 和不編號列表相同, 只是用

      代替
        . 各項同樣用
      • 標(biāo)記. 下面的 HTML 代碼:


        1. oranges
        2. peaches
        3. grapes

        產(chǎn)生的輸出為:

        oranges
        peaches
        grapes
        定義列表Definition Lists

        定義列表 (編碼為

        ) 通常含有交替出現(xiàn)的 定義術(shù)語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.

        項可以包含多個段落 (用

        標(biāo)記指示), 列表, 或其他的定義信息.

        COMPACT 屬性可能會被經(jīng)常使用,如果你的定義術(shù)語很簡短的話. 例如,如果你想顯示一些計算機(jī)選項, 它們可以和定義的開始處于同一行中.


        -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

        列表可以嵌套. 在每個列表項中,你還可以含有多個段落,每個段落含有嵌套列表

        新聞標(biāo)題:HTML 初學(xué)者指南
        新聞來源:http://www.muchs.cn/news/74421.html

        成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序、搜索引擎優(yōu)化、品牌網(wǎng)站制作、企業(yè)建站、網(wǎng)站設(shè)計公司、微信公眾號

        廣告

        聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

  • 營銷型網(wǎng)站建設(shè)