1. Technology

The <em></em> Tag

By

Html Concept
Logovski/iStock Vectors/Getty Imagees

<em> Description:

The <em> element provides emphasis for the enclosed text.

Most browsers tend to render <em> in italics.

<em> Web Browser Support:

 

 

<em> Attributes:

 

 

<em> End Tag:

</em> REQUIRED

Contents:

 

CDATA Usually plain text. The following tags are valid within the <em> tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

<em> Valid Context:

 

The <em> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<em> Usage:

 

  • standard emphasis
    This is <em>emphasized text</em>.

 

<em> Special Notes:

 

  • Most browsers display the em tag in italics, but if you write something that must be italics (rather than emphasized), use CSS.

 

More <em> Information:

 

Return to XHTML Element (HTML Tags) Library

©2014 About.com. All rights reserved.