Search w3schools.com:

SHARE THIS PAGE

CSS Reference

CSS Reference CSS Selectors CSS Reference Aural CSS Web Safe Fonts CSS Units CSS Colors CSS Color Values CSS Color Names CSS Color HEX CSS3 Browser Support

CSS Properties

CSS quotes Property


Example

Specify the quotation marks for embedded quotations:

q:lang(en)
{
quotes: "�" "�" "'" "'";
}

Try it yourself »

Definition and Usage

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

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


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.


Property Values

Value Description Play it
none Specifies that the "open-quote" and "close-quote" values of the "content" property will not produce any quotation marks Play it »
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 Play it »
inherit Specifies that the value of the quotes property should be inherited from the parent element

Quotation Mark Characters

Result Description Entity Number
" double quote "
' single quote '
single, left angle quote ‹
single, right angle quote ›
« double, left angle quote «
» double, right angle quote »
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) „
 

Related Pages

HTML DOM reference: quotes property




W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]