|
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>
|
|
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 3500 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
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).
|