HTML <em> Element
The <em> element is designed to display emphasized text.
Example:
The sea was <em>extremely</em>rough.
What a <em>fantastic</em> time we had.
Displays:
The sea was extremely rough.
What a fantastic time we had.
As you can see the browser shows emphasis by displaying italic text. This is the same for Internet Explorer, Firefox, Chrome and Safari for Windows.
The difference between using the <em> tag and the <i> tag is that <em> adds weight to the meaning of the
text whereas <i> merely changes the visual presentation of the text.
This point is important in relation to users with screen readers or other tools which 'speak' the contents of the screen as these tools will respond to the
<em> tag by using a different voice inflection.
<em> Attributes
- CORE AND LANGUAGE ATTRIBUTES - class, id, title, style, dir, lang
- MOUSE AND KEYBOARD EVENT ATTRIBUTES - onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmouseout, onmousemove, onkeydown, onkeyup, onkeypress
