HTML EM <em> Tag
0 3028
HTML EM <em> tag is a phrase tag that emphasizes the italic text content in an HTML document in other words we can say that it highlights particular content.
The web browser sets the font-style of <em> to be italic. The em tag is written as <em></em> with the emphasized content inserted between the start and end tags.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Example of HTML Em Tag</title>
<style>
h2{
color:#CA3939;
}
</style>
</head>
<body>
<h2>Example of em Tag</h2>
<p>This is <em> HTML em tag </em> and it will emphasis the <em>Emphasized text(important text)</em> of
the HTML document</p>
</body>
</html>
Output:
Share:
Comments
Waiting for your comments