HTML Reference ยท Inline Text
The <em> element
Reference for the HTML <em> element: stress emphasis that changes the meaning of a sentence, how it differs from <i> and <strong>, examples and details.
The <em> element marks stress emphasis: the word or phrase you would say with extra weight when reading the sentence aloud. Moving the emphasis changes the meaning, which is what makes <em> different from plain italics. Browsers display it in italics by default.
<p>I <em>asked</em> you to water the plants.</p>
Try it
The same words mean different things depending on which one carries the stress. Nesting <em> increases the degree of emphasis.
Attributes
This element has no attributes of its own. It accepts the global attributes.
Usage notes
<em>vs<i>. Use<i>for text in a different voice or mood: foreign phrases, ship names, technical terms, thoughts. If removing the italics would make the sentence lose its intended stress, use<em>.<em>vs<strong>.<strong>says the content is important;<em>changes how the sentence is read. They can be combined.- Titles of works. Book and film titles are not emphasis; use
<cite>. - Don't overuse it. If every other phrase is emphasized, none of them stand out.
- Accessibility. Most screen readers do not change their voice for
<em>by default, so the meaning should still come through in the words.
Technical summary
| Content categories | Flow content, phrasing content, palpable content |
| Permitted content | Phrasing content |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts phrasing content |
| Implicit ARIA role | emphasis |
| DOM interface | HTMLElement |
| Default display | inline (italic) |
Browser support
Supported in every browser.
Related
<strong>โ strong importance<i>โ text in an alternate voice<b>โ attention without importance- Lesson: Formatting Text