html5中引用標(biāo)記是“blockquote”或“q”元素。blockquote元素可定義摘自另一個(gè)源的塊引用,瀏覽器通常會(huì)對(duì)blockquote元素進(jìn)行縮進(jìn);而q元素可定義不需要段落分隔的短引用,瀏覽器經(jīng)常會(huì)在這種引用的周?chē)迦胍?hào)。
本教程操作環(huán)境:windows7系統(tǒng)、HTML5版、Dell G3電腦。
在html5中有兩種引用標(biāo)記:
-
<blockquote>
標(biāo)簽 -
<q>
標(biāo)簽
<blockquote> 標(biāo)簽
<blockquote> 標(biāo)簽定義摘自另一個(gè)源的塊引用。
瀏覽器通常會(huì)對(duì) <blockquote> 元素進(jìn)行縮進(jìn)。
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>About WWF</h1> <p>Here is a quote from WWF's website:</p> <blockquote cite="http://www.worldwildlife.org/who/index.html"> For 50 years, WWF has been protecting the future of nature. The world?s leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. </blockquote> </body> </html>
<q> 標(biāo)簽
<q> 標(biāo)簽定義不需要段落分隔的短引用。
瀏覽器經(jīng)常會(huì)在這種引用的周?chē)迦胍?hào)。
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</p> </body> </html>
推薦教程:《html視頻教程》