Widely availableSupported across all major browsers. Safe to use in production.

Overview

The quotes CSS property sets the quotation marks inserted via the content CSS property or <q> element.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
11
12
1.5
9
18
9
auto
87
87
70
14.1
87
14.5
none
11
12
1.5
9
18
9
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
/* Japanese quotation marks */
:lang(ja) {
  quotes: "「" "」" "『" "』";
}

/* Auto-select */
q {
  quotes: auto;
}

/* Custom quotes */
.fancy-quote {
  quotes: "\201C" "\201D" "\2018" "\2019";
}

Live demo

Japanesequotes

quotes property Japanesequotes demo.

PreviewFullscreen

Englishquotes

quotes property Englishquotes demo.

PreviewFullscreen

Custom symbols

quotes property customsymbol demo.

PreviewFullscreen

Use cases

  • Using Quotes

    The quotes CSS property sets the quotation marks inserted via the content CSS property or <q> element.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.

Powered by web-features