HTML <em> 标签用于强调句子或短语中的特定文本。它为其中包含的文本赋予语义含义,并在浏览器上以斜体形式呈现。
<em>Write Important content here.....</em>
以下是关于 HTML <em> 标签的一些规范
| 展示 | 排队 |
| 开始标签/结束标签 | 开始和结束标签 |
| 用法 | 原文 |
<!DOCTYPE html>
<html>
<head>
<title>Em Tag</title>
<style>
h2{
color:#ff7f50;
}
</style>
</head>
<body>
<h2>Example of em Tag</h2>
<p>This is <em>HTML em tag</em> and it will emphasis the <em>important text</em> of the sentence</p>
</body>
</html>输出:

属性
<em> 标签不包含 HTML 中的任何特定属性。
<em> 标签支持 HTML 中的全局属性
HTML <em> 标签支持 HTML 中的事件属性。
| 元素 | Chrome | IE | Firefox | Safari | Opera |
|---|---|---|---|---|---|
| <em> | Yes | Yes | Yes | Yes | Yes |
