Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style quotes Property

Style quotes Property

Style Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the quotes property, except Internet Explorer and Safari.


Example

Example

Change the quotation marks:

Runoob Tutorial(runoob.com)

This is aquotation element inside another quotation element.


Note: This example does not work in IE and Safari.

Try it »


Style Object Reference The Style object