HTML <em> Tag
Last Updated :
12 Mar, 2024
HTML <em> tag is used to emphasize text, typically rendering it in italics. It conveys importance or stress semantically and is widely employed for emphasis within paragraphs or sentences.
Note: The <em> tag in HTML supports both Global Attributes and Event Attributes, enabling versatile usage for emphasizing text content.
Syntax:
<em> Contents... </em>
HTML <em> tag Examples
Example:Â In this example, we use the <em> tag to render “Emphasized text content” in italics within the document structure.
html<!DOCTYPE html>
<html>
<body>
<h2>HTML em Tag</h2>
<em>Emphasized text content</em>
</body>
</html>
Output:
HTML em Tag
Supported Browsers: The browsers supported by HTML <em> tag are listed below:
Share your thoughts in the comments
Please Login to comment...