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 →

Also covered in

What to know first

Related concepts

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.