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>
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
Note/Warning/Danger/Info Both the <i> tag and <em> tag displays the text as italic but if you want to make the text important as well, then use <em> tag else use <i> tag.
Global Attributes
The <em> tag supports Global attributes.
Event Attributes
The <em> tag supports Event attributes.
Supporting Browsers
Related Tags
The <i> tag is similar but it does not mark the text as an important text.