The Wayback Machine - https://web.archive.org/web/20250126161200/https://www.geeksforgeeks.org/html-quotations/
Open In App

HTML Quotations

Last Updated : 22 Jul, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The HTML Quotation elements are used to insert quoted texts in a web page, that is the portion of texts different from the normal texts in the web page. Below are some of the most used quotation elements of the HTML.

TagDescription
<abbr>Defines abbreviation or acronym.
<address>Defines contact info for the author/owner of a document.
<bdo>Defines text direction, left-to-right or right-to-left.
<blockquote>Defines a section quoted from another source.
<cite>Defines the title of a work, book, article, or publication.
<q>Defines short inline quotation, enclosed in quotation marks.

HTML Quotations Examples

Example: In this example, we demonstrate the use of HTML Quotations in which <bdo> adjusts text directionality.<abbr> clarifies the abbreviation “GfG” with its full title.<address> displays contact information. These elements enhance content organization and readability.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>HTML Quotations</title>
</head>

<body>
    <h3>GeeksforGeeks</h3>

    <!--Normal text-->
    <p>
        The quick brown fox jumps over the
        lazy dog<br />
    </p>

    <!--Inside <bdo> tag-->
    <p>
        <bdo dir="rtl">The quick brown fox jumps over
            the lazy dog</bdo>
    </p>

    <p>
        Welcome to
        <abbr title="GeeksforGeeks">GfG</abbr>
    </p>

    <address>
        <p>
            Address:<br />
            710-B, Advant Navis Business
            Park,<br />
            Sector-142, Noida Uttar Pradesh –
            201305
        </p>
    </address>
</body>

</html>

Output:


HTML-Quotations

HTML Quotations Example Output



Example 2: In this example we use the of HTML quotations, including <blockquote>, <q>, and <cite>, to showcase different ways of representing quoted text and citations within a webpage.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>HTML Quotations Example</title>
</head>

<body>
    <h3>GeeksforGeeks</h3>
    <p>The quick brown fox jumps over the lazy dog<br></p>

    <!-- Inside blockquotes -->
    <blockquote>
        <p>The quick brown fox jumps
            over the lazy dog
        </p>
    </blockquote>

    <!-- Inside quotes -->
    <q>The quick brown fox jumps over the lazy dog</q>

    <!-- Cite with title -->
    <p>
        The <cite>GeeksforGeeks</cite>
        is the best site to<br>
        search for articles and practice problems.
    </p>
</body>

</html>

Output:


HTML-Quotations2

HTML Quotations Example Output


Supported Browsers:

HTML Quotations – FAQs

What are HTML quotations?

HTML quotations are used to enclose text that is quoted from another source, providing a semantic way to include quotes in a webpage.

How to make quotation marks in HTML?

Use the <q> tag for short quotations and the <blockquote> tag for longer block quotations.

How to display double quotes in HTML?

Use the HTML entity &quot; to display double quotes.

How do I add a single quote in HTML?

Use the HTML entity &apos; to display single quotes.

Is HTML single or double quotes?

HTML attributes can use either single (`’`) or double (`”`) quotes. Both are acceptable and function identically, but they should be used consistently within a document for readability.



Next Article

Similar Reads

three90RightbarBannerImg