HTML Quotation Tags

<q> tag (Quotations)

The <q> tag insert quotations for short content.

Additionally, the resource from where the quotation was extracted can be specified in the cite attribute, by providing its URL.

Syntax

<q>Text</q>

Example

Try Yourself

<blockquote> tag

The HTML <blockquote> element defines a section that is quoted from another source.

If your quotation spans multiple lines, you should use the <blockquote> tag. Most browsers surround blockquote text as indented text.

Example

Try Yourself

Example - <blockquote> with style

Try Yourself