Style quotes Property

Example

Change quotation marks:

document.getElementById("myQ").style.quotes = "'\253' '\273'";
Try it Yourself »

Description

The quotes property sets or returns the type of quotation marks for embedded quotations.


Browser Support

Property
quotes Yes Yes Yes Yes Yes

Syntax

Return the quotes property:

object.style.quotes

Set the quotes property:

object.style.quotes = "none|string string string string|initial|inherit"

Property Values

Value Description
none Specifies that the open-quote and close-quote values will not produce any quotation marks. This is default
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
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit


Technical Details

Default Value: none
Return Value: A String, representing the type of quotation marks for embedded quotations
CSS Version CSS2

More Examples

Example

Return the quotes property:

alert(document.getElementById("myQ").style.quotes);
Try it Yourself »

Related Pages

CSS reference: quotes property


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.