HTML DOM quotes Property
Definition and Usage
The quotes property sets the type of quotation marks for embedded
quotations.
Syntax
Object.style.quotes=none|string string string string
|
Possible Values
| Value |
Description |
| none |
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 |
" |
| ' |
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) |
„ |
Example
The following example set the quotation marks of a paragraph:
<html>
<head>
<script type="text/javascript">
function changeLineHeight()
{
document.getElementById("p1").style.lineHeight="2";
}
</script>
</head>
<body>
<p id="p1">This is an example paragraph<br />
This is an example paragraph<br />
This is an example paragraph</p>
<form>
<input type="button" onclick="changeLineHeight()"
value="Change paragraph style" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Change space between lines
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|