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

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.

TheroottaginanHTMLdocumentis.Itservesasthetop-levelelementthatencapsulatesallothercontent,ensuringproperdocumentstructureandbrowserparsing.

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

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.

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

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.

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.

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download
The most popular open source editor

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.
