119 of 133 menu

The q tag

The q tag is intended to highlight short quotes in the text. The cite attribute should contain a link to the source of the quote.

By default, the content of the q tag is displayed in quotation marks. The type of quotation marks depends on the language of the text, which is specified by the lang attribute (if there is no attribute, the browser will determine the language automatically). The type of quotation marks can also be changed using the CSS property quotes.

The q tag can be used together with the cite tag, which is needed to indicate a link to the source of the quote.

Attributes

Attribute Description
cite Link to the source of the quote (if necessary, if such a source exists).

Example

Let's take the quote in the q tag and display it in quotes:

<q>All's well that ends well</q>, he said.

:

See also

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline