HTML DOM Quote Object | HTML Quote Code Example and Tutorial by WDH

HTML DOM Quote Object


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 the <q> element by using the document.createElement() method:

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

Try it yourself

Quote object properties

Attributes description
cite Sets or returns the value of the referenced cite attribute.

Standard properties and events

The Quote object supports standard properties and events .

Related pages

HTML reference manual: HTML <q> tag