
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to use quotation marks in HTML?
We use <q> tag, to add short quotation marks in HTML. And if we want to quote for multiple lines, use <blockquote> tag.
We can also use the cite attribute inside the <blockquote> tag to indicate the source of the quotation in URL form.
Syntax
Following is the syntax for the <q> tag.
<q>The content to be quoted</q>
Example
Following is the example program for the <q> tag.
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for <q>Delhi Land and Finance</q></p> <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>
Example
In the example below, we used <q> tag on a particular text inside the <h1> tag.
<!DOCTYPE html> <html> <head> <title>HTML u tag</title> </head> <body> <h1>Welcome to <q> INDIA </q> Kids.</h1> </body> </html>
Using Blockquote tag
The <blockquote> tag in HTML is used to display the long quotations.
Syntax
Following is the syntax for the <blockquote> tag.
<blockquote>The multiple line content to be quoted </blockquote>
Example
Following is the example program for the <blockquote> tag.
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for Delhi Land and Finance</p> <blockquote>Delhi Land and Finance is one of the largest commercial real estate developer in India.</blockquote> </body> </html>
- Related Articles
- Set quotation marks with CSS
- How to display a short quotation in HTML?
- How to set the type of quotation marks for embedded quotations with JavaScript?
- How do we use double quotation in Python?
- Quotation in Python
- How to use blockquote in HTML?
- How to use Emphasized formatting in HTML?
- How to use small formatting in HTML?
- How to use small font in HTML?
- How to use the tag in HTML?
- How to use the tag in HTML?
- How to use the tag in HTML?
- How to use autocomplete attribute in HTML?
- How to use formnovalidate attribute in HTML?
- How to use formaction attribute in HTML?

Advertisements