HTML em, strong, dfn, code, samp, kbd & var Tags

Example

Format text in a document:
<em>Emphasized text</em>
<strong>Strong text</strong>
<dfn>Definition term</dfn>
<code>A piece of computer code</code>
<samp>Sample output from a computer program</samp>
<kbd>Keyboard input</kbd>
<var>Variable</var>

Teach Yourself  by BH24 HTML Editor Tool!

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are supported in all major browsers.

Definition and Usage

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.