The Quote object represents the HTML <q> element.
You can access the <q> element by using getElementById():
var x = document.getElementById("myQuote");
Try it yourself
You can create the <q> element by using the document.createElement() method:
var x = document.createElement("Q");
Try it yourself
Attributes | description |
---|---|
cite | Sets or returns the value of the referenced cite attribute. |
The Quote object supports standard properties and events .
HTML reference manual: HTML <q> tag