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

CSS quotes property

CSS quotes property

Example

Sets the quote types for nested quotations:

q:lang(en)

{

quotes: "�" "�" "'" "'";

}

Try it »


Property definition and usage

The quotes property sets the quote types for nested quotations.

Default value: not specified
Inherited: yes
Version: CSS2
JavaScript syntax: object.style.quotes="none"

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the quotes property.

**Note:** IE8 requires a defined !DOCTYPE to support the quotes property.


Attribute values

Value Description
none Specifies that the "open-quote" and "close-quote" values of the "content" property do not produce any quotes.
string string string string

Defines the quotes to use.

The first two values specify the first level of quotation nesting, and the last two specify the next level of quote nesting.

inherit Specifies that the value of the quotes property should be inherited from the parent element.

Quote characters

effect Description Entity Number
" Double quote "
' Single quote '
‹ Single left angle bracket ‹
› Single right angle bracket ›
« Double left angle bracket «
» Double right angle bracket »
' Left quote (single high-6) '
' Right quote (single high-9) '
" Left quote (double high-6) "
" Right quote (double high-9) "
„ Double quote (double low-9) „