HTML em Tag Italic Tag

HTML <em> element is employed to highlight specific text within a sentence or phrase. This imparts semantic significance to the enclosed text and displays it in italic format on the web browser.

Syntax

Example

<em>Write Important content here.....</em>

Here are some details regarding the HTML <em> element:

Display Inline
Start tag/End tag Both Start and End tag
Usage Textual

Example

Example

<!DOCTYPE html>

<html>

<head>

<title>Em Tag</title>

    <style>

	      h2{

	            color:#ff7f50;

                          }

 </style>

 </head>

 <body>

 <h2>Example of em Tag</h2>

 <p>This is <em>HTML em tag</em> and it will emphasis the <em>important text</em> of the sentence</p>

</body>

</html>

Output:

Attribute

Tag-specific attribute

The <em> tag in HTML does not include any particular attribute.

Global attribute

The <em> tag facilitates the utilization of global attributes within HTML.

Event attribute

The HTML <em> tag enables the utilization of event attributes within HTML.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<em> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below: