q Tag for Short Quotations

q Tag for Short Quotations

It is used to add a quote in a sentence, rather than a text block. It is supported by Firefox and Internet Explorer version 8 onwards only. It has cite attribute same as <blockquote> tag. Text in the opening <q> tag and the closing </q> tag is enclosed in double quotes as shown

HTML code

<p> Then she said, <q>Hello!</q>.</p>

Browser output

The q Tag for Short Quotations

Get industry recognized certification – Contact us

Menu