HTML em标签

本文概述

HTML <em>标记用于强调强调句子或短语中的特定文本。它赋予其中包含的文本语义含义, 并在浏览器中以斜体形式呈现。

句法

<em>Write Important content here.....</em>

以下是有关HTML <em>标签的一些规范

Display Inline
开始日期/结束日期 开始和结束标签
Usage Textual

<!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>

立即测试

输出:

HTML em标签

属性

特定于标签的属性

<em>标记在HTML中不包含任何特定的属性。

全局属性

<em>标记支持HTML中的全局属性

事件属性

HTML <em>标记支持HTML中的事件属性。

支持的浏览器

Element Chrome IE Firefox Opera Safari
<em> Yes Yes Yes Yes Yes
微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_49807.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?