Emphasized text tag
Uses of <em> tag
This tag is a phrase tag. It renders as emphasized text.This tag marks text that has stress emphasis which traditionally means that the text is displayed in italics by the browser.It is not deprecated, but it is possible to achieve richer effect with CSS.
Example-input
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Emphasized Text</title>
</head>
<body>
Normal Text<br>
<em>Emphasized Text</em>
</body>
</html>
Output
Normal TextThis tag is a phrase tag. It renders as emphasized text.This tag marks text that has stress emphasis which traditionally means that the text is displayed in italics by the browser.It is not deprecated, but it is possible to achieve richer effect with CSS.
Example-input
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Emphasized Text</title>
</head>
<body>
Normal Text<br>
<em>Emphasized Text</em>
</body>
</html>
Output
Emphasized Text
Comments
Post a Comment