A:學(xué)的內(nèi)容
1.什么是HTML和CSS
html是用來寫網(wǎng)頁的結(jié)構(gòu),css是用來修飾html
2.常用的html標(biāo)簽
(1)結(jié)構(gòu)標(biāo)簽:
頭部標(biāo)簽<head> </head>
內(nèi)容標(biāo)簽<body> </body>
樣式標(biāo)簽<style> </style>
<>開始標(biāo)簽
</>結(jié)束標(biāo)簽
(2)標(biāo)題標(biāo)簽:<h1>,<h2>,<h3>,<h4>,<h5>,<h6>
(4)列表標(biāo)簽:
無序列表:
<ul>
<li> </li>
</ul>
定義列表:
<dl>
<dt> <dt>
<dd> <dd>
</dl>
(5)盒子標(biāo)簽:<div> </div>
(6)超鏈接標(biāo)簽:<a> </a>
(7)段落文本標(biāo)簽:<p> </p>
(8)文本框標(biāo)簽:<input type="text"/>
(9)按鈕標(biāo)簽:<button> <button>
3.CSS樣式
背景顏色background-color
字體大小 font-size
高度 height: 50
行高 line-height
字體顏色color
文本對齊 : text-align: center/right/left
外邊距margin;
內(nèi)邊距:padding
4.選擇器
id選擇器
class選擇器
元素選擇器
5.盒子模型
margin:外邊距
margin-left,margin-right,margin-top,margin-bottom
order:邊框
border-width:邊框的寬度
border-style:solid/dotted
border-color:邊框的顏色
padding:填充
padding-left,padding-right,padding-top,padding-bottom
width;
margin-right: auto;
margin-left:auto;