CSS quotes Property
Definition and Usage
The quotes property sets the type of quotation marks for quotations.
| Default value: | not specified |
|---|---|
| Inherited: | yes |
| Animatable: | no. Read about animatable |
| Version: | CSS2 |
| JavaScript syntax: | object.style.quotes="'253円' '273円'" Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| quotes | 11.0 | 8.0 | 1.5 | 5.1 | 4.0 |
CSS Syntax
quotes: none|string|initial|inherit;
Property Values
| Value | Description | Demo |
|---|---|---|
| none | Specifies that the "open-quote" and "close-quote" values of the "content" property will not produce any quotation marks | Demo ❯ |
| string string string string | Specifies which quotation marks to use. The first two values specifies the first level of quotation embedding, the next two values specifies the next level of quote embedding, etc | Demo ❯ |
| initial | Sets this property to its default value. Read about initial | |
| inherit | Inherits this property from its parent element. Read about inherit |
Quotation Mark Characters
| Result | Description | Entity Number |
|---|---|---|
| " | double quote | 0022円 |
| ' | single quote | 0027円 |
| ‹ | single, left angle quote | 2039円 |
| › | single, right angle quote | 203円A |
| « | double, left angle quote | 00円AB |
| » | double, right angle quote | 00円BB |
| ‘ | left quote (single high-6) | 2018円 |
| ’ | right quote (single high-9) | 2019円 |
| “ | left quote (double high-6) | 201円C |
| ” | right quote (double high-9) | 201円D |
| „ | double quote (double low-9) | 201円E |
Related Pages
HTML DOM reference: quotes property