<label id="2a06w"><tt id="2a06w"></tt></label><label id="2a06w"><tt id="2a06w"><em id="2a06w"></em></tt></label><menu id="2a06w"></menu>
  • <dfn id="2a06w"><var id="2a06w"><label id="2a06w"></label></var></dfn>
    <sup id="2a06w"><button id="2a06w"><em id="2a06w"></em></button></sup>
    <dfn id="2a06w"><var id="2a06w"></var></dfn>
    <dfn id="2a06w"></dfn>
  • <dfn id="2a06w"><code id="2a06w"><ins id="2a06w"></ins></code></dfn>
  • <small id="2a06w"><samp id="2a06w"></samp></small>
  • <dfn id="2a06w"><table id="2a06w"><center id="2a06w"></center></table></dfn>
    <label id="2a06w"><tt id="2a06w"><em id="2a06w"></em></tt></label>
    <strike id="2a06w"><form id="2a06w"></form></strike>
    <menu id="2a06w"><tt id="2a06w"></tt></menu>

    將想法與焦點(diǎn)和您一起共享

    掌握常用的用于網(wǎng)頁(yè)中引用內(nèi)容的HTML標(biāo)記發(fā)布者:本站     時(shí)間:2020-05-16 08:05:27

    根據(jù)的HTML規(guī)范,有三個(gè)元素,用于引用內(nèi)容,即<blockquote><q><cite>。

    現(xiàn)實(shí)中,對(duì)這些標(biāo)簽的使用還是比較少,因此,當(dāng)你真正應(yīng)用的時(shí)候,應(yīng)該使用什么標(biāo)簽?你必須對(duì)它們的語(yǔ)義了如指掌。

    <blockquote>

    blockquote是內(nèi)容的引用。

    內(nèi)容必須包括塊級(jí)元素,如標(biāo)題,列表,段落或div標(biāo)簽。

    這個(gè)元素也可以有一個(gè)可選屬性cite指定的位置(以URI的形式出現(xiàn))例如:

    <blockquote cite="/reference/htmltags/blockquote/">

    <p>A large quotation.The content of a blockquote element must include block-level elements such as headings,lists,paragraphs or div's.</p>

    <p>cite can be used to specify the location(in the form of a URI)where the quote has come from.</p>

    </blockquote>

    <q>

    <q>標(biāo)簽可定義一個(gè)短的引用。

    <q>標(biāo)簽在本質(zhì)上與<blockquote>是一樣的。

    不同之處在于它們的顯示和應(yīng)用。

    <q>標(biāo)簽用于簡(jiǎn)短的行內(nèi)引用。

    Bob said<q>sexy pyjamas</q>but Chris said<q>a kimono</q>

    雖然<q>幾乎從未使用過(guò),它有一些有用的屬性。

    例如,您可以通過(guò)的CSS為<q>指定的外觀引號(hào)符號(hào)。

    這是允許的

    Q{}

    Q{quotes:'?''?'}

    Q{quotes:'?''“'}

    看起來(lái)似乎不錯(cuò),不過(guò)IE全系列都不支持,即使是最新的IE8也是。

    巨囧~~

    <cite>

    使用該標(biāo)簽對(duì)參考文獻(xiàn)的引用進(jìn)行定義,比如書籍或雜志的標(biāo)題。

    例如:

    <p>And<cite>Bob</cite>said<q>No,I think it's a banana</q>.</p>

    總結(jié):

    長(zhǎng)的引使用<blockquote>,短的引號(hào)使用<q>,參考文獻(xiàn)引用使用<cite>。

    在實(shí)踐中,通常只用到<blockquote>和<q>。



    選擇我們,優(yōu)質(zhì)服務(wù),不容錯(cuò)過(guò)
    1. 優(yōu)秀的網(wǎng)絡(luò)資源,強(qiáng)大的網(wǎng)站優(yōu)化技術(shù),穩(wěn)定的網(wǎng)站和速度保證
    2. 15年上海網(wǎng)站建設(shè)經(jīng)驗(yàn),優(yōu)秀的技術(shù)和設(shè)計(jì)水平,更放心
    3. 全程省心服務(wù),不必?fù)?dān)心自己不懂網(wǎng)絡(luò),更省心。
    ------------------------------------------------------------
    24小時(shí)聯(lián)系電話:021-58370032
    99人妻中文字幕视频在,亚洲无码视频在线免费看,久久国产乱子伦免费精品,日本中文字幕色视频网站
    <label id="2a06w"><tt id="2a06w"></tt></label><label id="2a06w"><tt id="2a06w"><em id="2a06w"></em></tt></label><menu id="2a06w"></menu>
  • <dfn id="2a06w"><var id="2a06w"><label id="2a06w"></label></var></dfn>
    <sup id="2a06w"><button id="2a06w"><em id="2a06w"></em></button></sup>
    <dfn id="2a06w"><var id="2a06w"></var></dfn>
    <dfn id="2a06w"></dfn>
  • <dfn id="2a06w"><code id="2a06w"><ins id="2a06w"></ins></code></dfn>
  • <small id="2a06w"><samp id="2a06w"></samp></small>
  • <dfn id="2a06w"><table id="2a06w"><center id="2a06w"></center></table></dfn>
    <label id="2a06w"><tt id="2a06w"><em id="2a06w"></em></tt></label>
    <strike id="2a06w"><form id="2a06w"></form></strike>
    <menu id="2a06w"><tt id="2a06w"></tt></menu>