CSS quotes Property

❮ Previous Reference Next ❯


q {
  quotes: '"' '"' "'" "'";

q::before {
  content: open-quote;

q::after {
  content: close-quote;

.example::before {
  content: open-quote;

.example::after {
  content: close-quote;


The quotes property defines the style of quotation marks to be used with embedded quotations.

Be careful with the implicit application or not of quotes for <q> elements.

Default value:none
JavaScript syntax:

Standard Syntax

quotes: none|auto|string1...stringN|initial|inherit|revert|revert-layer|unset;

Browser Support

The numbers in the table specify the first browser version that fully supports the property.


Property Values

The following table describes the values of this property.

Value Description
none The open-quote and close-quote values of the content property produce no quotation marks.
auto Appropriate quote marks will be used for whatever language value is set on the selected elements (i.e. via the lang attribute).
string One or more pairs of string values for open-quote and close-quote. The first pair represents the outer level of quotation, the second pair is for the first nested level, next pair for third level and so on.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  quotes: none;
❮ Previous Reference Next ❯