Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Short Quotation
Quotation Element

Quotation is a formatting element used to add quotation marks in text. <q> defines short quotation and it includes quotation marks in text.

Syntax

<q>Content</q>

Or

<tag><q>Content</q></tag>


You can use short quotation element any where within an HTML document.


Example

Paragraph inside quotation marks


Short quotation is a pair tag and output of short quotation element is quotation marks over text from like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Write heading 1
  • Use <q> element to give quotation marks

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Heading 1 inside quotation marks


Don't forget short quotation is non empty element which means it always comes in pair.