em

< html‎ | elements
Jump to: navigation, search

em

This article is In Progress.



Summary

The em element indicates text that should be emphasized.


Overview Table

DOM Interface HTMLElement


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
1.0
Yes
?
Yes
?
Yes
?
Yes
?
Yes

Mobile

FeaturesAndroidFirefox MobileIE PhoneOpera MobileSafari Mobile
Basic support
?
Yes
?
Yes
?
Yes
?
Yes
?
Yes

Examples

This example uses the em element to emphasize text.

HTML

<p>Please fill in the form below.
<em>Note: all fields are required.</em></p>

Incidentally, the level of stress that a particular piece of content has is given by its number of ancestor em elements.

HTML

<p>Chicken Little: <q><em>The sky is falling…
<em>the sky is falling… <em>the sky is falling!</em></em></em></q></p>

Usage

The em element is a phrasing-level element. It must not contain block-level elements, but it can contain other phrasing-level elements.

Notes

By default, most browsers render the em element in italics, but you can change that in CSS.

If the text is of great importance, seriousness, or urgency the strong element would be a better choice.

If you are looking to indicate text that is in an alternate voice, mood, or language, the i element would be a better choice.

If you wish to italicize the name of a creative work (e.g. a magazine, book, or film title), use the cite element instead.



See also

Related articles

HTML









































  • em










… further results

Text











































  • em








… further results


Related pages (MSDN)

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]