HTML <em> tag

The <em> tag is used to display emphasized text. The text displayed using the <em> tag looks italic.

Standard attributes

class, dir, id, lang, style, title, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup

For more information on event attributes, check out our HTML event attributes reference page.

Example

Here is some <em>emphasized text</em> You want emphasis? I'll give you <em>emphasis</em>!
Output:
Here is some emphasized text You want emphasis? I'll give you emphasis!

Tips & notes

The emphasis placed on text using the <em> tag is not that great. You can achieve much greater emphasis using CSS. With CSS you can do things like change text size, color, background, add borders around the text, and more. How's THAT for emphasis?! Use the <em> tag on minor things here and there but if you need some serious emphasis, go with CSS instead.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation