The <em> <strong> <dfn> <code> <samp> <kbd>
<var> <cite> tags
Definition and Usage
The following HTML tags are phrase elements. They are
not deprecated, but it is possible to achieve a much richer effect using
styles.
<em>
Renders as emphasized text
<strong>
Renders as strong emphasized text
<dfn>
Defines a definition term
<code>
Defines computer code text
<samp>
Defines sample computer code
<kbd>
Defines keyboard text
<var>
Defines a variable
<cite>
Defines a citation
Examples
This code:
Produces this output:
<em>This text is emphasized</em>
<strong>This text is strong</strong>
<dfn>This text is a definition term</dfn>
<code>This text is computer code</code>
<samp>This text is sample computer code</samp>
<kbd>This text is keyboard text</kbd>
<var>This text is a variable</var>
<cite>This text is a citation</cite>
This text is emphasized This text is strong
This text is a definition term This text is computer code This text is sample computer code This text is keyboard text This text is a variable
This text is a citation
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.