HTML Tutorial

HTML Tag: <em>

Usage of

The tag is used to emphasize text within a document. It renders the enclosed text in italics.

Attributes of

The tag does not have any specific attributes.

Examples with

  • To emphasize a word: <em>important</em> will render "important" in italics.
  • To emphasize a phrase: <em>This is a phrase</em> will render "This is a phrase" in italics.

Exploring the tag

<!DOCTYPE html>
<html>
<body>
  <h1><em>Emphasis Tag Example</em></h1>
  <p>Here's an important <em>note</em>:</p>
  <p>Remember to <em>save</em> your changes.</p>
</body>
</html>

This example will display the following:

Emphasis Tag Example

Here's an important note:

Remember to save your changes.