search
HomeWeb Front-endHTML TutorialQuotation Tag in HTML

Quotation Tag in HTML

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

Quotation tag in HTML is used to show short quotations using tag. It is enclosed in between …. . It helps to indicate that the contained text is in the inline quotation. For a short quotation, we are going to use tag whereas for long quotation we are going to use HTML tag called as

…..
.This tag is specially used to indicate text on web browsers differently from normal text.
tag is used in HTML to represent block-level quote in webpage document. Those tags are most useful for styling purposes because they distribute your web page’s flow into different sections.

Syntax:

<q> Some text </q>

This tag is used to show an inline quotation in an HTML document.

<blockquote> Some text </blockquote>

This tag is used to show block-level quotations. It helps to change the position of the text and make it different from other elements. This tag uses an attribute called cite, which helps to define the actual source of the quotation.

Elements of Quotation Tag in HTML

The following are the most useful elements which we are going to use within the quotation tag:

Example #1 – 
tag

This tag is used to show the address on the HTML document, which put text into the address tag as follows:

Syntax:

<address>  some text </address>

Code:



<title>abbr element </title>


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

Output:

Quotation Tag in HTML

Example #2 – tag

Abbreviations of the text can be defined by using this element. Whenever a user is hovering the mouse over this tag, it will show an abbreviation of the text.

Syntax:

<abbr> Text </abbr>

Code: 



<title>abbr element </title>


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

Output:

Quotation Tag in HTML

Example #3 – tag

This tag in the quotation tag is used to define bidirectional override. It changes the actual text direction in the HTML element.

Syntax:

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

Here dir value may be ltr means from left to the right direction or rtl means the right to left direction.

Code:



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

Output:

Quotation Tag in HTML

Example #4 – tag

This is used to show inline text quotations.

Syntax:

<q> text </q>

Code:



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

Output:

Quotation Tag in HTML

Example #5 –
tag

This is used to represent block-level quotations in the web document.

Syntax:

<blockquote> contents </blockquote>

Code:



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


Output:

Quotation Tag in HTML

Example of Quotation Tag in HTML

Given below are the examples:

Example #1

Let’s see an example to illustrate how the quotation tag is going to be used. It includes an address tag, abbreviation tag, and different quotation tags also.

Code:



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

Output: 

Quotation Tag in HTML

Example #2

Let’s see an example to illustrate how the quotation tag is going to be used. It includes bdo tag.

Code:



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

Output:

Quotation Tag in HTML

Example #3

This example is showing quotation for inline and block level text as follows:

Code:



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

Output:

Quotation Tag in HTML

Conclusion

and

tags are used as Quotation tag in HTML. tag is for inline text where as
is for block level text element. tag support attribute called cite. tag also supports tags like
, , etc.

The above is the detailed content of Quotation Tag in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Versatility of HTML: Applications and Use CasesThe Versatility of HTML: Applications and Use CasesApr 30, 2025 am 12:03 AM

HTML is not only the skeleton of web pages, but is more widely used in many fields: 1. In web page development, HTML defines the page structure and combines CSS and JavaScript to achieve rich interfaces. 2. In mobile application development, HTML5 supports offline storage and geolocation functions. 3. In emails and newsletters, HTML improves the format and multimedia effects of emails. 4. In game development, HTML5's Canvas API is used to create 2D and 3D games.

What is the root tag in an HTML document?What is the root tag in an HTML document?Apr 29, 2025 am 12:10 AM

TheroottaginanHTMLdocumentis.Itservesasthetop-levelelementthatencapsulatesallothercontent,ensuringproperdocumentstructureandbrowserparsing.

Are the HTML tags and elements the same thing?Are the HTML tags and elements the same thing?Apr 28, 2025 pm 05:44 PM

The article explains that HTML tags are syntax markers used to define elements, while elements are complete units including tags and content. They work together to structure webpages.Character count: 159

What is the significance of <head> and <body> tag in HTML?What is the significance of <head> and <body> tag in HTML?Apr 28, 2025 pm 05:43 PM

The article discusses the roles of <head> and <body> tags in HTML, their impact on user experience, and SEO implications. Proper structuring enhances website functionality and search engine optimization.

What is the difference between <strong>, <b> tags and <em>, <i> tags?What is the difference between <strong>, <b> tags and <em>, <i> tags?Apr 28, 2025 pm 05:42 PM

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

Please explain how to indicate the character set being used by a document in HTML?Please explain how to indicate the character set being used by a document in HTML?Apr 28, 2025 pm 05:41 PM

Article discusses specifying character encoding in HTML, focusing on UTF-8. Main issue: ensuring correct display of text, preventing garbled characters, and enhancing SEO and accessibility.

What are the various formatting tags in HTML?What are the various formatting tags in HTML?Apr 28, 2025 pm 05:39 PM

The article discusses various HTML formatting tags used for structuring and styling web content, emphasizing their effects on text appearance and the importance of semantic tags for accessibility and SEO.

What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?Apr 28, 2025 pm 05:39 PM

The article discusses the differences between HTML's 'id' and 'class' attributes, focusing on their uniqueness, purpose, CSS syntax, and specificity. It explains how their use impacts webpage styling and functionality, and provides best practices for

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.