em
The HTML <em> element adds emphasis to text. The emphasis can change how a sentence is understood or read aloud; it is more than a request to display italic text.
What you will learn
- What meaning or pronunciation emphasis
emrepresents - How
emdiffers fromstrongandi - How to choose elements by meaning instead of appearance
Basic example
<p>Please read the <em>whole</em> instruction.</p>
Browsers usually render em in italics, but the important part is its meaning. Assistive technologies can use the emphasis when presenting the text, and nested em elements can express a stronger level of emphasis.
How it differs from similar elements
em: emphasis that affects meaning or reading.strong: strong importance, seriousness, or urgency.i: text in an alternative voice or mood without adding emphasis, such as a term or title.
If the goal is only visual styling, use CSS rather than choosing an element for its default italic appearance.