1、HTML樣式
a、標簽
(1)<style>:樣式定義
(2)<link>:資源參考
b、屬性
(1)rel="stylesheet"外部樣式表參考
(2)type="text/css"引入檔案的型別
(3)margin-left邊距
c、三種插入方法
(1)外部樣式表:<link rel="stylesheet" type="text/css" href="https://www.cnblogs.com/XiaoHongLactasoy/p/mystyle.css">
(2)內部樣式表:
<style type="text/css">
body {background-color : red}
p {margin-left : 20px}
</style>
(3)行內樣式表:<p style = "color : red">
d、關于樣式的操作都集中放在head里面
2、HTML鏈接
a、鏈接資料:
(1)文本鏈接
(2)圖片鏈接
b、屬性:
(1)href屬性:指向另一個檔案的鏈接
(2)name屬性:創建檔案內的鏈接
c、img標簽屬性:
(1)alt:替換文本屬性
(2)width:寬
(3)height:高
3、HTML表格
a、<table>定義表格
b、<caption>定義表格標題
c、<th>定義表格表頭
d、<tr>定義表格的行
e、<td>定義表格單元
f、<thead>定義表格頁眉
g、<tbody>定義表格主體
h、<tfoot>定義表格頁腳
i、<col>定義表格列屬性
j、<ul>定義一個列
k、<li>定義一列的每一專案
l、屬性:
(1)border邊距
(2)cellpadding單元格間距
(3)background插入背景圖
(4)bgcolor背景顏色

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/53605.html
標籤:Html/Css
下一篇:[前端第五課]HTML串列
