W3Schools

home HOME

CSS Basic
CSS HOME
CSS Introduction
CSS Syntax
CSS How To
CSS Background
CSS Text
CSS Font
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS List
CSS Table

CSS Advanced
CSS Dimension
CSS Classification
CSS Positioning
CSS Pseudo-class
CSS Pseudo-element
CSS Image Gallery
CSS Image Opacity
CSS Media Types
CSS Don't
CSS Summary

CSS Examples
CSS Examples

References
CSS2 Reference
CSS2 Print
CSS2 Aural
CSS Units
CSS Colors
CSS Colorvalues
CSS Colornames

CSS Quiz
CSS Quiz
CSS Exam

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Forum

Helping W3Schools

CSS quotes Property


CSS Reference Complete CSS Reference

Definition

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

Inherited: Yes


JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.

Scripting Syntax: object.style.quotes="none"

In our HTML DOM tutorial you can find more details about the quotes property.

In our HTML DOM tutorial you can also find a full Style Object Reference.


Example

Example 1

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

the style above and the following HTML file:

<html lang="en">
<head>
</head>
<body>
<p><q>This is a <q>big</q> quote</q></p>
</body>
</html>

would produce this output:

"This is a 'big' quote"

Example 2

q:lang(no)
{
quotes: "«" "»" "'" "'"
}

the style above and the following HTML file:

<html lang="no">
<head>
</head>
<body>
<p><q>Vi synger <q>Mellom bakkar og berg</q> på 17.mai.</q>
</body>
</html>

would produce this output:

«Vi synger 'Mellom bakkar og berg' på 17.mai.»

Possible Values

Value Description
none Specifies that the "open-quote" and "close-quote" values of the "content" property will not produce any quotation marks
string string string string Defines the 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

Quotation Mark Characters

Result Description Entity Number
" double quote &#34;
' single quote &#39;
single, left angle quote &#8249;
single, right angle quote &#8250;
« double, left angle quote &#171;
» double, right angle quote &#187;
left quote (single high-6) &#8216;
right quote (single high-9) &#8217;
left quote (double high-6) &#8220;
right quote (double high-9) &#8221;
double quote (double low-9) &#8222;
 

Try-It-Yourself Demos

Changes the quotation marks on a page
This example demonstrates how to change the quotation marks on a page.


CSS Reference Complete CSS Reference


Want To Be A Web Master?

If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).

MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs. Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability you need to host your high end web sites and applications.

Visit MaximumASP




Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

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

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999