Style quotes Property
The Style object
Definition and Usage
The quotes property sets or returns the type of quotation marks used for embedded quotations.
Syntax
Set the quotes property:
Object.style.quotes="none|
string string string string
|inherit"
Return the quotes property:
Object.style.quotes
| Value | Description |
|---|---|
| none | Default. Specifies that the "open-quote" and "close-quote" values of the "content" property do not produce any quotation marks. |
| string string string string | Specifies the quotation marks to use. The first two values specify the first level of quotation nesting, and the last two values specify the next level of quotation nesting. |
| inherit | The value of the quotes property is inherited from the parent element. |
Browser support





All major browsers support the quotes property, except Internet Explorer and Safari.
Example
Example
Change the quotation marks:
This is a
quotation element
inside another quotation element.
Note: This example does not work in IE and Safari.
Try it »
The Style object