HTML Element: <dfn>
[this page | pdf | back links]
The HTML <dfn> element indicates the defining
instance of a term, usually its first use. In research papers, books and other
documents such instances may be italicised. The nearest parent of a <dfn> element should typically
contain a short definition or explanation for the term included in the <dfn> element.
The attributes
it can take are HTML
global attributes and HTML event attributes.
To create or access such
an element in JavaScript
see here. The
corresponding HTML DOM
object supports standard
DOM properties and methods. The default style applicable to this element is
shown here.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Created using HTML:<br>
<dfn>defining instance of term</dfn>
<br><br>Created using JavaScript:<br>
<span id="element"></span>
<script>
var x = document.createElement("DFN");
x.textContent = "defining instance of term";
// or use var txt = document.createTextNode("defining instance of term");
// x.appendChild(txt);
document.getElementById("element").appendChild(x);
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Elements