首頁  >  文章  >  web前端  >  html5中引用標記是什麼元素

html5中引用標記是什麼元素

青灯夜游
青灯夜游原創
2021-12-16 16:42:312066瀏覽

html5中引用標記是「blockquote」或「q」元素。 blockquote元素可定義摘自另一個來源的區塊引用,瀏覽器通常會對blockquote元素進行縮排;而q元素可定義不需要段落分隔的短引用,瀏覽器經常會在這種引用的周圍插入引號。

html5中引用標記是什麼元素

本教學操作環境:windows7系統、HTML5版、Dell G3電腦。

在html5中有兩個引用標記:

  • <blockquote></blockquote> 標籤

  • <q></q> 標籤

 標籤

標籤定義摘自另一個來源的區塊引用。

瀏覽器通常會對

元素進行縮排。
<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>

<h1>About WWF</h1>
<p>Here is a quote from WWF&#39;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>

html5中引用標記是什麼元素

 標籤

 標籤定義不需要段落分隔的短引用。

瀏覽器經常會在這種引用的周圍插入引號。

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>

<p>WWF&#39;s goal is to: 
<q>Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>

</body>
</html>

html5中引用標記是什麼元素

推薦教學:《html影片教學

以上是html5中引用標記是什麼元素的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn