liveBook · Manning

Em element

The em element is an HTML element that semantically marks text for emphasis or stress, conventionally rendered in italics by browsers.

How 2 Manning books explain it

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.

Read how Build a Website with ChatGPT explains em element →

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.

Read how Design for Developers explains em element →

Related concepts

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.