Em element
The em element is an HTML element that semantically marks text for emphasis or stress, conventionally rendered in italics by browsers.
Build a Website with ChatGPT
The em element is an HTML element that marks text with semantic emphasis or stress.
- How it is used
- Marks words or phrases that need added emphasis or stress within ordinary HTML text.
- How deep it goes
- Explains semantic purpose, browser rendering, comparison with strong and i, and nesting, but does not detail CSS customization.
- Examples
- Uses an emphasized word in a pie-pastry sentence and contrasts emphasis with important, keyword, and alternative text examples.
- What you can do after
- Apply the em element to mark text that should receive added stress in an HTML sentence.
Design for Developers
The HTML em element marks text that carries emphasis.
- How it is used
- Uses semantic HTML to express emphasis when italic styling carries meaning.
- How deep it goes
- Distinguishes emphasis, alternate voice, specialized text, and purely stylistic italics, while stopping short of implementation detail.
- Examples
- Uses italics, oblique fonts, the <em> tag, the <i> tag, and CSS classes as contrasting examples.
- What you can do after
- Apply semantic HTML to distinguish meaningful emphasis from voice, specialized text, and visual styling.
Also covered in
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- italicsItalics are a typographic style with slanted letterforms used to emphasize or visually distinguish text.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
Related concepts
- i elementcontrasts with · The i element is an HTML element that marks text set apart from surrounding prose by a different voice, mood, or semantic role.
- italicsproduces · Italics are a typographic style with slanted letterforms used to emphasize or visually distinguish text.
- strong elementcontrasts with · The HTML strong element marks content as having strong importance, seriousness, or urgency.
- HTML tagkind of · An HTML tag is angle-bracket-delimited markup that identifies, structures, or marks the boundary of an element in an HTML document.
- u elementcontrasts with · The HTML u element marks text with a non-textual annotation, commonly rendered as an underline.
- browserused by · A web browser is software that retrieves, interprets, and renders web resources, executes supported web content, and enables interaction with web applications.
Questions about em element
What is em element?
The em element is an HTML element that semantically marks text for emphasis or stress, conventionally rendered in italics by browsers.
Which Manning books explain em element?
Build a Website with ChatGPT and Design for Developers.
What should I know before learning em element?
Manning books that teach em element usually introduce HTML, italics and CSS first.
What is the difference between em element and i element?
The em element is an HTML element that semantically marks text for emphasis or stress, conventionally rendered in italics by browsers. The i element is an HTML element that marks text set apart from surrounding prose by a different voice, mood, or semantic role.
What is em element a kind of?
Em element is a kind of HTML tag. An HTML tag is angle-bracket-delimited markup that identifies, structures, or marks the boundary of an element in an HTML document.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

