您的位置:首页 > Web前端 > HTML

HTML中强调文本的标签:<span>,<em>和<strong>

2017-07-29 15:07 471 查看
原文地址:http://blog.csdn.net/android_s123/article/details/50417057

1. <em>和<strong>标签是为了强调一段话中的关键字时使用,它们的语义是强调。

      <em>:斜体

     <strong>:加粗

2. <span>标签是没有语义的,它的作用就是为了设置单独的样式用的。

[html] view
plain copy

<html>  

<head>  

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">  

<title>“<span>标签的测试”</title>  

<style>  

span{  

 color:blue;  

}  

</style>  

</head>  

<body>  

<p>用<span>span</span>标签为单独的元素设置样式</p>  

</body>  

</html>   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: