个性化阅读
专注于IT技术分析

HTML引号

本文概述

HTML引号用于在你的网站上添加短引号。为此, 你需要使用HTML q标签和HTML blockquote标签。


HTML q标签

HTML q标签用于放置小引号。为此, 请在<q> …………. </ q>标记内编写文本。

<p> Great quote on love and life.</p>
<p> Dr. Seuss once said : <q>Reality is finally better than your dreams.</q></p>

立即测试

输出:

关于爱情和生活的好报价。

苏斯博士曾经说过:现实终于比你的梦想更好。


HTML blockquote标签

HTML blockquote标记用于定义一个大的带引号的部分。如果报价很大, 则将整个文本放在<blockquote> …………. </ blockquote>标记内。

<p> Read this inspirational story.</p>
<blockquote> According to scientists, the bumblebee's body is too heavy and its wing span too 
small. Aerodynamically, the bumblebee cannot fly. But the bumblebee doesn't know that and it 
keeps flying. When you don't know your limitations, you go out and surprise yourself. In hindsight, you 
wonder if you had any limitations. The only limitations a person has are those that are self-
imposed. Don't let education put limitations on you.</blockquote>

立即测试

输出:

阅读这个鼓舞人心的故事。

据科学家称, 大黄蜂的身体太重, 其翼展太小。在空气动力学上, 大黄蜂无法飞行。但是大黄蜂不知道, 它一直在飞。当你不知道自己的局限性时, 你会出人意料。事后看来, 你想知道你是否有任何限制。一个人唯一的限制就是那些自我强加的限制。不要让教育给你带来限制。


支持的浏览器

Element Chrome IE Firefox Opera Safari
<q>和<blockquote> Yes Yes Yes Yes Yes

引用和引用中使用的HTML标签

标签 描述
<abbr> 它定义了缩写或首字母缩写。
<address> 用于定义文档编写者的联系信息。
<bdo> 它定义了文本的方向。
<blockquote> 它用于定义引用另一个来源的部分。
<q> 它用于放置小报价。
<cite> 它定义了引用或工作来源的来源标题。
<define> 它用于定义定义术语。
赞(0)
未经允许不得转载:srcmini » HTML引号

评论 抢沙发

评论前必须登录!