EM HTML

HTML <em> Tag

To emphasize a specified text within a sentence or a phrase, the HTML <em> tag is used. It thus provides semantic meaning to the text. The text is displayed in the italic form on the browser.

Syntax:

<em>Important Content</em>

Example:

<!DOCTYPE html>
<html>
<body>
<em>HELLO WORLD!!</em><br>
<strong>HELLO WORLD!!</strong><br>
<code>HELLO WORLD!!</code><br>
<samp>HELLO WORLD!!</samp><br>
<kbd>HELLO WORLD!!</kbd><br>
<var>HELLO WORLD!!</var>
</body>
</html>

Explanation:

In the above example, we have used the different HTML phrase tags.

Global Attributes:

The Global attributes are supported by the HTML <em> tag.

Event Attributes:

The Event attributes are supported by the HTML <em> tag.

Supporting Browsers:

Chrome, IE, Firefox, Opera, and Safari.