Latest web development tutorials
 

Style quotes Property

< Style Object

Example

Change quotation marks:

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

Definition and Usage

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


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The quotes property is supported in all major browsers.

Note: IE8 supports the quotes property only if a !DOCTYPE is specified.


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


< Style Object