dfn ElementThe dfn element is an inline element declared by the XHTML 1.1 Text Module (Inline Phrasal)
Elements in the Text Module are:span | br (Inline Structural Support Module)em | strong | q | cite | abbr | acronym | code | var | kbd | samp | dfn (Inline Phrasal Support Module)div | p (Block Structural Support Module)h1 - h6 | blockquote | pre | address (Block Phrasal Support Module)
The dfn element is used to denote the 'defining instance' of a term.
For example:
<p><dfn>Oojimaflip</dfn>
is a generic noun which is usually used in speech in place of another, specific noun (one that the
speaker has forgotten or simply does not know). For example,
"Has anyone seen the oojimaflip?" may be enquired of someone,
who is then expected to somehow guess the intended specific noun
(the one which has been replaced by the generic "oojimaflip") from the context of the conversation.
A verbal description of the said oojimaflip
(or the actual specific noun, if remembered) is usually required if the
questioner is to receive an satisfactory answer to his or her enquiry.</p>
This example renders as:
Oojimaflip is a generic noun which is usually used in speech in place of another, specific noun (one that the speaker has forgotten or simply does not know). For example, "Has anyone seen the oojimaflip?" may be enquired of someone, who is then expected to somehow guess the intended specific noun (the one which has been replaced by the generic "oojimaflip") from the context of the conversation. A verbal description of the said oojimaflip (or the actual specific noun, if remembered) is usually required if the questioner is to receive an satisfactory answer to his or her enquiry.
As you can see from this example, it is only the defining instance of the term 'oojimaflip' which is
enclosed in a dfn element. Subsequent occurrences of the word are not marked up.
The example has no styles applied to it and so the dfn element is displayed using your
browser's default behaviour, which is commonly to render the term in italics.
See also definition lists, which are created using the dl element.
There are no #REQUIRED attributes on the dfn element.
There are no specific attributes declared on the dfn element.
dfn element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
dfn element is:
( #PCDATA | Inline.mix )*
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
dfnabbr, acronym, br, cite, code, dfn, em, kbd, q, samp, span, strong, varabutton, input, label, select, textareaimgb, big, i, small, sub, sup, ttmapnoscript, scriptdel, insbdoobjectrubydfnabbr, acronym, address, cite, code, dfn, div, em, h1 - h6, kbd, p, pre, q, samp, span, strong, varadd, dt, licaption, td, thbutton, fieldset, label, legendb, big, i, small, sub, sup, ttdel, insbdoobjectrb, rt