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
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a free 30-day trial today!
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|