12 out of 17 rated this helpful - Rate this topic

quotes Attribute | quotes Property

Gets or sets the pairs of strings to be used as quotes in generated content.

Syntax

CSS { quotes : sValue }
Scripting [ sValue = ] object.style.quotes [ = sValue ]

Possible Values

sValue String that specifies or receives one of the following values.
[<string> <string>]+
The "open-quote" and "close-quote" values are taken from the specified list of pairs of quotation marks.
none
The "open-quote" and "close-quote" values produce no quotation marks.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has no default value. The Cascading Style Sheets (CSS) attribute is not inherited.

Remarks

Pairs of strings are required if the value is not none.

IE8 Standards mode rendering is required.

Example

The following example shows how the quotes element works in HTML.


<html lang="en">
  <head>
      <meta http-equiv="X-UA-Compatible" content="IE=8"/>
    <title>QUOTES Example</title>
    <style type="text/css">
    /* Define quote characters */
      q { quotes: '"' '"' }
    /* Define pseudo-class triggers */
      q:before { content: open-quote }
      q:after  { content: close-quote }
    </style>
  </head>
  <body>
  <p><q>When I die, I'm donating my body to science fiction.</q><em> ~ Stephen Wright</em></p>
  </body>
</html>

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 2 Revision 1 (CSS2.1).

Applies To

A, ABBR, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CSSStyleDeclaration, currentStyle, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OL, P, PRE, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, CSSCurrentStyleDeclaration Constructor, CSSRuleStyleDeclaration Constructor, CSSStyleDeclaration Constructor
Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.