1、字体
body{font-family:"宋体";}
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>认识html标签</title>
<style type="text/css">
body{font-family:"Microsoft Yahei";}
</style>
</head>
<body>
<h1>勇气</h1>
<p>三年级时,我还是一个<span id="stress">胆小如鼠</span>的小女孩,上课从来不敢回答老师提出的问题,生怕回答错了老师会批评我。就一直没有这个勇气来回答老师提出的问题。学校举办的活动我也没勇气参加。</p>
</body>
</html>
2、文字颜色、大小
body{font-size:12px;color:#666;}
3、粗体
p span{font-weight:bold;}4、斜体
p a{font-style:italic;}5、下划线
p a{text-decoration:underline;}6、删除线
.oldPrice{text-decoration:line-through;}
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>删除样式</title>
<style type="text/css">
.oldPrice{text-decoration:line-through;}
</style>
</head>
<body>
<p>原价:<span class="oldPrice">300</span>元 现价:230 元</p>
</body>
</html>
7、缩进
p{text-indent:2em;} /*2em为文字两倍大小*/8、行间距
p{line-height:1.5em;}9、字间距、字母间距
h1{ letter-spacing:50px; }
h1{ word-spacing:50px; /*设置英文间距*/ }
10、块状居中对齐(也可居左或居右)
h1{ text-align:center; }