一、元素語義
p標簽
W3C草案:
The p element represents a paragraph.W3C specification
語義化的 <p>元素 表示:文章中的段落。默認樣式 margin: 1em 0
h1-6標簽
W3C草案:
The h1 through h6 elements are headings for the sections with which they are associated. W3C specification
語義化的 <h1>元素 到 <h6>元素 表示:作為相關內容的標題,且<h1>為最高級別的標題。注意:<h1>元素一般用作網頁標題,網頁中最多出現一個<h1>元素。
q標簽
W3C草案:
The q element represents phrasing content quoted from another source.W3C specification
語義化的 <q>元素 表示:引述其他人或來源的簡短內容(句子),建議通過cite特性添加來源地址。注意:<q>元素的默認樣式為引述的內容前后添加雙引號。
blockquote標簽
W3C草案:
The blockquote element represents a section that is quoted from another source.W3C specification
語義化的 <blockquote>元素 表示:引述其他人或來源的長篇幅的內容(段落),建議通過cite特性添加來源地址。注意:<blockquote>元素的默認樣式為引述的段落左右添加縮進40px。
hr標簽
W3C草案:
The hr element represents a paragraph-level thematic break.W3C specification
語義化的 <hr>元素 :用于表示上面的主題結束,接下來的內容屬于另一個主題。
address標簽
W3C草案:
The address element represents contact information.W3C specification
語義化的 <address>元素 :用于表示聯系的地址信息。注意:若<address>元素為<body>元素的親子元素,則表示當前網頁的聯系地址信息;若<address>元素為某個段落的子元素則表示為該段落內容的聯系地址信息。
code標簽
W3C草案:
The code element represents a fragment of computer code.W3C specification
語義化的 <code>元素 :用于表示簡短的計算機代碼片段。
pre標簽
W3C草案:
The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.W3C specification
語義化的 <pre>元素 :用于對內容連內容排版原封不動地顯示。可用于顯示大量的計算機代碼片段。
var標簽
W3C草案:
The var element represents either a variable in a mathematical expression or programming context, or placeholder text that the reader is meant to mentally replace with some other literal value.W3C specification
語義化的 <var>元素 :表示數學表達式、程序上下文或占位符。
cite標簽
W3C草案:
The cite element represents the cited title of a work; for example, the title of a book mentioned within the main text flow of a document.W3C specification
語義化的 <cite>元素 :表示該內容為某作品的標題,作品包括詩歌、書籍、小說、電影、歌劇、電視劇、音樂、展覽、報告等。
dfn標簽
W3C草案:
The dfn element represents the defining instance of a term.W3C specification
語義化的 <dfn>元素 :表示該內容為特定領域的術語,用于與其他內容作區分,以便讀者識別并提示讀者查閱術語說明等進一步了解該內容的含義。注意:一般僅在該內容在全文首次出現的位置使用,其他位置不再通過<dfn>元素來標識該術語。
samp標簽
W3C草案:
The samp element represents (sample) output from a program or computing system.W3C specification
語義化的 <samp>元素 :表示由程序或計算機輸出的文本字符串。
二、參考
http://www.w3school.com.cn/tags/tag_phrase_elements.asp
文章列表