搜索
首页web前端html教程HTML 中的引用标签

HTML 中的引用标签

Sep 04, 2024 pm 04:22 PM
htmlhtml5HTML TutorialHTML PropertiesHTML tags

HTML 中的引用标签用于使用 显示简短的引用。标签。它包含在 之间。 …… 。它有助于表明所包含的文本位于内联引用中。对于简短的引用,我们将使用 ... 标签,而对于长引用,我们将使用名为

的 HTML 标签。 ......
。该标签专门用于指示网页浏览器上与普通文本不同的文本。
标签在 HTML 中用于表示网页文档中的块级引用。这些标签对于样式设计最有用,因为它们将网页的流程分配到不同的部分。

语法:

<q> Some text </q>

此标签用于在 HTML 文档中显示内嵌引用。

<blockquote> Some text </blockquote>

该标签用于显示块级引用。它有助于更​​改文本的位置并使其与其他元素不同。该标签使用名为 cite 的属性,该属性有助于定义引文的实际来源。

HTML 中引用标签的元素

以下是我们将在引号标签中使用的最有用的元素:

示例 #1 – ;标签

此标签用于在 HTML 文档上显示地址,将文本放入地址标签中,如下所示:

语法:

<address>  some text </address>

代码:



<title>abbr element </title>


<address>156, devanagri, <br>
Near shanoormiya darga, <br>
Aurangabad
</address>

输出:

HTML 中的引用标签

示例 #2 – 标签

可以使用此元素定义文本的缩写。每当用户将鼠标悬停在该标签上时,它就会显示文本的缩写。

语法:

<abbr> Text </abbr>

代码:



<title>abbr element </title>


<p>Welcome to <abbr title="Beautiful
Automation System">Beautosys</abbr></p>

输出:

HTML 中的引用标签

示例#3 – 标签

引号标签中的这个标签用于定义双向覆盖。它改变 HTML 元素中的实际文本方向。

语法:

<bdo dir="”value”"> text </bdo>

这里的dir值可以是ltr表示从左到右方向或者rtl表示从右到左方向。

代码:



<p> Uday wire Industries </p>
<p><bdo dir="”ltr”">Uday wire Industries </bdo></p>

输出:

HTML 中的引用标签

示例 #4 – 标签

这用于显示内嵌文本引用。

语法:

<q> text </q>

代码:



<q>Sisters are the choc chips in the era of biscuits </q>

输出:

HTML 中的引用标签

示例 #5 –
;标签

这用于表示网络文档中的块级引用

语法:

<blockquote> contents </blockquote>

代码:



<title> Quotation tag in HTML </title>


<p> Uday wire Industries </p>
<p></p><blockquote> In the era of making new friends and showing
off , I just wish one thing, that my old one’s stay; No matter what
the   trend is.</blockquote>


输出:

HTML 中的引用标签

HTML 中的引用标签示例

以下是示例:

示例#1

让我们看一个例子来说明如何使用引用标签。它还包括地址标签、缩写标签和不同的引号标签。

代码:



<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
.qtag{
background-color: burlywood;
border-color: crimson;
border-style: dashed;
}
</style>


<div class="qtag">
<h2 id="Quotation-Tags-Example">Quotation Tags Example</h2>
<h4 id="Address-tag">Address tag</h4>
<address>
<blockquote>
<p> 176, Kauslya kunj <br>
Andaman Hill , Pangari Road <br>
Chandigad <br>
<b>Contact US</b><br>
Contact No: 9968795334 <br>
EmailD: [email protected]<br>
</p>
</blockquote>
</address>
<h4 id="Abbreviation-tag">Abbreviation tag</h4>
<p>
<q>Being with <abbr title="Beautiful Automation Systems ">BEAUTOSYS </abbr> for marvelous growth into your business, Automation in technology and many more.......  ! Stay Connected </q>
</p>
<p>Be connected with us for Software services, Automation in new technologies, Embedded services, Responsive Websites and Mechanical services </p>
<h5 id="Stay-Connected">Stay Connected!</h5>
</div>

输出:

HTML 中的引用标签

示例#2

让我们看一个例子来说明如何使用引用标签。它包括 bdo 标签。

代码:



<h2 id="bdo-tag-in-quotation">bdo tag in quotation</h2>
<p>dir value in the bdo tag defines the direction from which direction text is going to move and it will  generate output. <b>rtl </b>value defines text will moves from right to left direction where as <b>ltr</b></p>
<h4 id="bdo-tag">bdo tag</h4>
<p>Tere is no success like failure. <br>
<bdo dir="rtl">Tere is no success like failure.</bdo> </p>
<p>I get knocked down. But I get up again. You’re never going to keep me down <br>
<q><bdo dir="ltr">I get knocked down. But I get up again. You’re never going to keep me down</bdo></q> </p>
<p>Don’t let what you cannot do interfere with what you can do.” <br>
<bdo dir="rtl">Don’t let what you cannot do interfere with what you can do.”</bdo></p>
<p>The secret of getting ahead is getting started
<q><bdo dir="ltr">The secret of getting ahead is getting started</bdo></q>
</p>
<p>Success iss the sum of small efforts , Repeated day_in and day_out.<br>
<bdo dir="rtl">Success iss the sum of small efforts , Repeated day_in and day_out.</bdo>
</p>

输出:

HTML 中的引用标签

示例 #3

此示例显示内联和块级文本的引用,如下所示:

代码:



<p> Quotation  <b>q</b> tag </p>
<p><q> Success demands singleness of purpose.</q></p>
<p><q>Choosing a goal and sticking to it changes everything.</q></p>
<p><q> Choose a job you love, and you will never have to work a day in your life!.</q></p>
<p><q> The most important thing about motivation is goal setting .You should always have a goal</q></p> <br>
<p>Quotation <b>blockquote </b> tag for Block </p>
<h4 id="Big-data-is-advance-Telemedicine">Big data is advance Telemedicine</h4>
<blockquote> <p>Big data is making impact in every field now a day. By using latest technology  in telemedicine field , one can get more information about their diseases ,so they can take more care using telemedicine. </p>
</blockquote>

输出:

HTML 中的引用标签

结论

和标签在 HTML 中用作引用标签。 标签用于内联文本,其中

用于块级文本元素。 标签支持称为 cite 的属性。 tag 还支持
等标签。等等

以上是HTML 中的引用标签的详细内容。更多信息请关注PHP中文网其他相关文章!

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
HTML的角色:构建Web内容HTML的角色:构建Web内容Apr 11, 2025 am 12:12 AM

HTML的作用是通过标签和属性定义网页的结构和内容。1.HTML通过到、等标签组织内容,使其易于阅读和理解。2.使用语义化标签如、等增强可访问性和SEO。3.优化HTML代码可以提高网页加载速度和用户体验。

HTML和代码:仔细观察术语HTML和代码:仔细观察术语Apr 10, 2025 am 09:28 AM

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代码” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代码”代码“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML,CSS和JavaScript:Web开发人员的基本工具HTML,CSS和JavaScript:Web开发人员的基本工具Apr 09, 2025 am 12:12 AM

HTML、CSS和JavaScript是Web开发的三大支柱。1.HTML定义网页结构,使用标签如、等。2.CSS控制网页样式,使用选择器和属性如color、font-size等。3.JavaScript实现动态效果和交互,通过事件监听和DOM操作。

HTML,CSS和JavaScript的角色:核心职责HTML,CSS和JavaScript的角色:核心职责Apr 08, 2025 pm 07:05 PM

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

HTML容易为初学者学习吗?HTML容易为初学者学习吗?Apr 07, 2025 am 12:11 AM

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。

HTML中起始标签的示例是什么?HTML中起始标签的示例是什么?Apr 06, 2025 am 12:04 AM

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

如何利用CSS的Flexbox布局实现菜单中虚线分割效果的居中对齐?如何利用CSS的Flexbox布局实现菜单中虚线分割效果的居中对齐?Apr 05, 2025 pm 01:24 PM

如何设计菜单中的虚线分割效果?在设计菜单时,菜名和价格的左右对齐通常不难实现,但中间的虚线或点如何...

在线代码编辑器究竟用什么HTML元素实现代码输入?在线代码编辑器究竟用什么HTML元素实现代码输入?Apr 05, 2025 pm 01:21 PM

网页代码编辑器中的HTML元素分析许多在线代码编辑器允许用户输入HTML、CSS和JavaScript代码。最近,有人提出了一...

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解锁Myrise中的所有内容
3 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Atom编辑器mac版下载

Atom编辑器mac版下载

最流行的的开源编辑器

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境

EditPlus 中文破解版

EditPlus 中文破解版

体积小,语法高亮,不支持代码提示功能