How to Add a Short Quotation using HTML5 ?

In this article, we will define a short quotation by using an <q> tag. It is used to insert quotation texts on a web page, i.e. a portion of texts different from the normal texts.

Syntax:

<q> Quotation Text... </q>

Example 1:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>
        Define a short quotation
    </title>
</head>
  
<body>
    <h3>GeeksforGeeks</h3>
  
    <h3>
        HTML5: How to define 
        a short quotation?
    </h3>
  
    <p>
        The quick brown fox jumps 
        over the lazy dog
    </p>
  
    <!--Inside quotes-->
    <p><q>
        The quick brown fox jumps 
        over the lazy dog
    </q></p>
</body>
  
</html>

chevron_right


Output:

Example 2:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <meta charset="utf-8">
    <title>
        How to define a 
        short quotation
    </title>
</head>
  
<body>
    <h1>
        GeeksForGeeks
    </h1>
  
    <h2>
        Define a short quotation?
    </h2>
  
    <p>
        Einstein said <q>Truth is what
        stands the test of experience.</q>
    </p>
</body>
  
</html>

chevron_right


Output:

Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

full-stack-img




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.