Example Format text in a document: <em>Emphasized text</em> <strong>Strong text</strong> <dfn>Defin...
ExampleFormat text in a document:
|
Definition and Usage
The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, <var>, and <cite> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.<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 |
Browser Support
The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, <var>, and <cite> tags are supported in all major browsers.Differences Between HTML and XHTML
NONEStandard Attributes
id, class, title, style, dir, lang, xml:lang |
Event Attributes
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |