
Opening tag : <DFN>
Closing tag: </DFN>
Purpose:
DFN is short for Define, and the DFN tag is used to define words within a document. While some attributes can be set for the text appearing between the opening and closing dfn tags, it appears that the main change is that text within the DFN tags appears to be in italic! There is little benefit to this tag!
Attributes:
Class=class
- Allows text to be formatted using the class specified in the css.
Dir=direction.
- Useful for languages that should appear from right to left.
event=Javascript
- After the event occurs, the javascript will be executed.
id=name
- ID allows the text to be formatted dynamically.
lang=language
- Specifies a language for the text.
style=style
- This can be used to override the formatting specified in the CSS.
title=string
- Allows you to specify a title for the text - perhaps useful for adding keywords.
Example:
<DFN>HTML</DFN> is a markup language.
Related Tags:
-
Back to:
Alphabetical Guide
Guide By Type