HTML DOM Quote Object

Quote object

The Quote object represents the HTML <q> element.

Access the Quote object

You can access the <q> element by using getElementById():

var x = document.getElementById("myQuote");

Try It Yourself

Create a Quote object

You can create a <q> element by using the document.createElement() method:

var x = document.createElement("Q");

Try It Yourself

Quote Object Properties

Properties Description
cite Set or return the value of the cite attribute of the reference.

Standard Properties and Events

Quote Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <q> Tag