列表Lists
HTML 支援不編號 unnumbered, 編號numbered, 和定義definition 三種列表. 你也可以嵌套列表, 但是不要嵌套過多,否則會使讀者感到不清晰。
不編號列表Unnumbered Lists
製作一個不編號的,公告式列表,
用開始標記
- ( unnumbered list 的簡記) 開始輸入
- (list item) 標記,後面跟獨立的項目; 不需要用 標記
用
下面是一個有三個項目的列表:
- apples
- bananas
- grape
輸出形式為:
apples
bananas
grapefruit
指示編號
列表編號為有序列表ordered list) 和不編號列表相同, 只是用
- 代替
- . 各項同樣用
- 標記. 下面的HTML 代碼:
- oranges
- peaches
- grapes
產生的輸出為:
oranges
peaches
grapes
定義列表Definition Lists 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
- Champaign.
- Cornell Theory Center
- CTCaign.
- Cornell Theory Center
- CTCaign.located on the camp Center
- CTCaign.located on the camp Center
- CTCaign.located on the camp Center
- CTCaign.located on the camp Center
- CTCaign.located on the camp Center campus ofon the camp Cornell University in Ithaca,
New York.
- CTCaign.located on the camp Center
輸出形式為:
NCSA
NCSA, the National Center for Supercomputing Applications, is located on the campus of the University of Illinois at Urban 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 iniosk mode
-i
invokes NCSA Mosaic for Microsoft Windows using the initialization file defined in the path.
-k
invokes NCSA Mosaic for Microsoft in kiosk mode.在列表項目中,你還可以含有多個段落,每個段落含有嵌套列表.以上就是HTML 初學者指南(三)的內容,更多相關內容請關注PHP中文網(www.php .cn)!
- oranges

HTML的作用是通過標籤和屬性定義網頁的結構和內容。 1.HTML通過到、等標籤組織內容,使其易於閱讀和理解。 2.使用語義化標籤如、等增強可訪問性和SEO。 3.優化HTML代碼可以提高網頁加載速度和用戶體驗。

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代碼” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代碼”代碼“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML、CSS和JavaScript是Web開發的三大支柱。 1.HTML定義網頁結構,使用標籤如、等。 2.CSS控製網頁樣式,使用選擇器和屬性如color、font-size等。 3.JavaScript實現動態效果和交互,通過事件監聽和DOM操作。

HTML定義網頁結構,CSS負責樣式和佈局,JavaScript賦予動態交互。三者在網頁開發中各司其職,共同構建豐富多彩的網站。

HTML適合初學者學習,因為它簡單易學且能快速看到成果。 1)HTML的學習曲線平緩,易於上手。 2)只需掌握基本標籤即可開始創建網頁。 3)靈活性高,可與CSS和JavaScript結合使用。 4)豐富的學習資源和現代工具支持學習過程。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

如何設計菜單中的虛線分割效果?在設計菜單時,菜名和價格的左右對齊通常不難實現,但中間的虛線或點如何...

網頁代碼編輯器中的HTML元素分析許多在線代碼編輯器允許用戶輸入HTML、CSS和JavaScript代碼。最近,有人提出了一...


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

EditPlus 中文破解版
體積小,語法高亮,不支援程式碼提示功能

SublimeText3 Linux新版
SublimeText3 Linux最新版

WebStorm Mac版
好用的JavaScript開發工具

禪工作室 13.0.1
強大的PHP整合開發環境

Atom編輯器mac版下載
最受歡迎的的開源編輯器