dfn

I. Description

The HTML dfn element is short for 'definition' and the element encapsulates a term. The definition for the term must be located in one of the following places.

  1. The dt element / dd element.
  2. The ancestor section element of the dfn element.
  3. The ancestor p element of the dfn element.

The dfn element accepts the title attribute. The value of the title attribute should be the term which is being defined.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <section>
            <dfn>Hypertext Markup Language</dfn> is a markup language intended to encode
            information in a structured way which can then be displayed by web browsers.
        </section>
        <p>
            <dfn><abbr title="Cascading Style Sheets">CSS</abbr></dfn> is a language used
            to control the appearance of html web pages.
        </p>
        <dl>
            <dt>Javascript</dt>
            <dd>
                A scripted loosely typed programming language which is frequently used
                to create interactive and dynamic web pages. <dfn>Javascript</dfn> is
                supported by all major web browsers.
            </dd>
        </dl>
    </body>
</html>