html5中怎么引用标记

本篇内容介绍了“html5中怎么引用标记”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

html5中引用标记是“blockquote”或“q”元素。blockquote元素可定义摘自另一个源的块引用,浏览器通常会对blockquote元素进行缩进;而q元素可定义不需要段落分隔的短引用,浏览器经常会在这种引用的周围插入引号。

本教程操作环境:windows7系统、HTML5版、Dell G3电脑。

在html5中有两种引用标记:

  • <blockquote> 标签

  • <q> 标签

<blockquote> 标签

<blockquote> 标签定义摘自另一个源的块引用。

浏览器通常会对 <blockquote> 元素进行缩进。

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

<h2>About WWF</h2>
<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>

html5中怎么引用标记

<q> 标签

<q> 标签定义不需要段落分隔的短引用。

浏览器经常会在这种引用的周围插入引号。

<!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>

html5中怎么引用标记

“html5中怎么引用标记”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!