1.直接添加在html的标识符里:
<p style = "color:blue;font-size:12pt">
HTML与CSS实现网页分工,HTML负责显示数据,CSS负责样式
</p>
2.添加在HTML的头信息标识符<head>里
<head>
<style type = "text/css">
3.连接样式表
<head>
<link rel = "stylesheet" href = "*.css" type = "text/css">
</head>
4.联合使用样式表
<head>
<style type = "text/css">
<!--
@inport "*.css"
其他样式表的声明
-->
</style>
</head>