<em> tag

HTML <em> tag

The <em> tag  emphasizes a text so it formats a text to emphasized text.

Emphasized texts appears as italic and it makes the text an important text.

Syntax:
<em>text here…<em>

Example

<p><em>emphasized text.</em></p>

Default CSS Value

font-style: italic;

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
No Difference No Difference No Difference

Attributes used with <em> tag

NONE

Global Attributes

The <em> tag supports Global attributes.

Event Attributes

The <em> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

The <i> tag is similar but it does not mark the text as an important text.

Tutorials for all brains!