Blockquote cite attribute

Paglalarawan at Paggamit

cite I-set o ihatid ang halaga ng pinagmulan ng pagtatugon na attribute.

<blockquote> cite attribute Tinutukoy ang URL ng pinagmulan ng pagtatugon.

Komento:Ang cite attribute ay walang epekto sa pangkalahatang browser ng internet, ngunit maaaring gamitin ng screen reader.

Pansin din:

HTML 参考手册:HTML <blockquote> 标签

Halimbawa

Halimbawa 1

Ihatid ang URL ng pagtatugon:

var x = document.getElementById("myBlockquote").cite;

Subukan nang personal

Halimbawa 2

Baguhin ang URL ng pagtatugon:

document.getElementById("myBlockquote").cite = "http://www.cnn.com/";

Subukan nang personal

Gramata

Ihatid ang cite attribute:

blockquoteObject.cite

I-set ang cite attribute:

blockquoteObject.cite = URL

Halaga ng Atribute

Halaga Paglalarawan
URL

Tinutukoy ang URL ng pinagmulan ng pagtatugon.

Mga posibleng halaga:

Totoo na URL - ayon sa ibang websayt (gaya ng cite="http://www.example.com/page.html") 相对 URL - 指向网站内的文件(如 cite="page.html")

技术细节

返回值: 字符串值,表示源文档的 URL。

浏览器支持

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
支持 支持 支持 支持 支持

相关页面

HTML 参考手册:HTML <blockquote> cite 属性