CodesJava

Easy learning with example program codes

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>

Output:

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.

Please follow and like us:
error
Posted in HTML   









Copyright © 2019 CodesJava DMCA.com Protection Status