<html>
<head>
<meta charset="UTF-8">
<title>认识CSS样式</title>
<style type="text/css">
p {
font-size:20px; /*设置文字字号*/
color: red ; /*设置文字颜色*/
font-weight: bold; /*设置字体加粗*/
}
</style>
</head>
<body>
<p>慕课网,超酷的互联网、IT技术免费学习平台,创新的网络一站式学习、实践体验;服务及时贴心,内容专业、有趣易学。专注服务互联网工程师快速成为技术高手!</p>
</body>
</html>
优先级:内联式 > 嵌入式 > 外部式
<head>
<meta charset="UTF-8">
<title>css3中三种引入样式优先级</title>
<link href="style.css" rel="stylesheet" type="text/css">嵌入式
<style type="text/css">
span {外部式
color: red;
}
</style>
</head>
<body>
<p>慕课网,<span style="color:pink内联式">超酷的互联网</span>、IT技术免费学习平台,创新的网络一站式学习、实践体验;服务及时贴心,内容专业、有趣易学。专注服务互联网工程师快速成为技术高手!</p>
</body>