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:
<!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 >
< p >< q >
The quick brown fox jumps
over the lazy dog
</ q ></ p >
</ body >
</ html >
|
Output:

Example 2:
<!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 >
|
Output:

Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
28 May, 2020
Like Article
Save Article