THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM DFN Object


DFN Object

The DFN object represents an HTML <dfn> element.

Access a DFN Object

You can access a <dfn> element by using getElementById():

Example

var x = document.getElementById("myDFN");
Try it Yourself »

Create a DFN Object

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

Example

var x = document.createElement("DFN");
Try it Yourself »

Standard Properties and Events

The DFN object also supports the standard properties and events.


Related Pages

HTML reference: HTML <dfn> tag