html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <dfn> tag

Definition

The <dfn> tag is used to define a definition term.

Example


<dfn>This text will be a definition term.</dfn>

Required Attributes

NONE

Optional Attributes

NONE

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<dfn class="classname">Definition text here</dfn>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<dfn id="idname">Definition text here</dfn>

style - specifies an inline style for the element allowing you to apply the style to the content.


<dfn style="color:red;text-align:left">Definition text here</dfn>

title - specifies extra information about the content.


<dfn title="information about the content">Definition text here</dfn>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<dfn dir="ltr">Definition text here</dfn>

<!-- The text will flow from right to left -->
<dfn dir="rtl">Definition text here</dfn>

lang - specifies a language code for the content of the element.


<dfn lang="en">Definition text here</dfn>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<dfn xml:lang="fr">Definition text here</dfn>

Document Event Attributes

NONE

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<dfn onkeydown="go()">Definition text here</dfn>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<dfn onkeypress="go()">Definition text here</dfn>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<dfn onkeyup="go()">Definition text here</dfn>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<dfn onclick="go()">Definition text here</dfn>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<dfn ondblclick="go()">Definition text here</dfn>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<dfn onmousedown="go()">Definition text here</dfn>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<dfn onmousemove="go()">Definition text here</dfn>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<dfn onmouseout="go()">Definition text here</dfn>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<dfn onmouseover="go()">Definition text here</dfn>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<dfn onmouseup="go()">Definition text here</dfn>


<del> tag    << Prev          Next >>  <dir> tag

go to home page Homepage go to top of page Top

HTML Elements

The complete set of HTML elements also known as HTML tags from the latest HTML 4.01 Specification.

Click the links for more information on individual tags and their attributes.

<!--...-->

<!DOCTYPE>

<a>

<abbr>

<acronym>

<address>

<applet>

<area />

<b>

<base />

<basefont />

<bdo>

<big>

<blockquote>

<body>

<br />

<button>

<caption>

<center>

<cite>

<code>

<col />

<colgroup>

<dd>

<del>

<dfn>

<dir>

<div>

<dl>

<dt>

<em>

<fieldset>

<font>

<form>

<frame />

<frameset>

<h1> - <h6>

<head>

<hr />

<html>

<i>

<iframe>

<img />

<input />

<ins>

<isindex />

<kbd>

<label>

<legend>

<li>

<link />

<map>

<menu>

<meta />

<noframes>

<noscript>

<object>

<ol>

<optgroup>

<option>

<p>

<param />

<pre>

<q>

<s>

<samp>

<script>

<select>

<small>

<span>

<strike>

<strong>

<style>

<sub>

<sup>

<table>

<tbody>

<td>

<textarea>

<tfoot>

<th>

<thead>

<title>

<tr>

<tt>

<u>

<ul>

<var>