文本html
1.标签
p,span,strong,em,del(删除线),ins(下划线),br,hr,h1-h6
2.
<a href="地址" target="_blank | _self" ></a>
herf:可用于锚点链接(定位文本指定位置)
1)在href属性中,设置属性值为#id名字的形式
2)在目标标签中加上相同的id属性
target:新窗口打开 |在原窗口打开
3.字体属性
font-family,font-size,font-style:normal | italic,font-weight
4.文本属性
text-align,text-decoration,line-height,letter-spacing(字间距),text-indent
5.实例(css)
*{
margin: 0;
padding: 0;
}
li{
list-style:none;
}
a{
text-decoration: none;
}
.all{
width: 930px;
border: 1px solid gray;
background-color: antiquewhite;
margin: 20px auto;
padding: 10px 20px;
letter-spacing: 1px;
}
.all p,h3{
text-indent: 2em;
line-height: 1.5em;
}
.header .outline{
background-color: white;
margin: 10px 20px;
border: 1px solid gray;
}
.outline span{
color: grey;
font-size: 20px;
font-weight: 700;
}
or: grey;
font-size: 20px;
font-weight: 700;
}