- 瀏覽器輸入//地址,http通過IP端口查詢到服務器,瀏覽器可以把www.xxx翻譯爲IP,需要dns服務器解析
- 我們電腦上都有host文件,優先級高於dns服務器
- DNS緩衝—》host—》dns—-》Dns根服務器
1.HTML
HTML 頁面:
HTML標籤:www.w3cshcool.com.cn
2.基礎標籤
圖片:img
1<img src="1.jpg"/>
2<img src="static/images/1.jpg"alt="這個是alt" /><!-- 當前目錄下查找 -->
3<img src="./static/images/1.jpg"alt="這個是alt" />
4<img src="/static/images/1.jpg"alt="這個是alt" />
5<img src="../static/images/1.jpg"alt="這個是alt" />
6<img src="http://static.jingshan.com/static/images/1.jpg"alt="這個是alt" />
A 連接:
<a target="_blank" href="http://www.baidu.com">百度</a>彈出新窗口顯示頁面
<a target="_self" href="http://www.baidu.com">百度</a>
文字: H1-H6
div:大的塊元素
Span:小的塊元素
ul li:列表
dl dt dd:列表
標題標籤 p:段落標籤
em:斜體 b着重 samll:變小 i: strong: sub: sup:
2.1
表單:form input method:post get 256個字符**put delete ;文件上傳:method post multity-post-data單選框:**radio複選框:CheckBox;input Button submit reset text password placeholder
表格:table :tr td thead:表頭
佈局標籤:div:大的塊元素 span:小的塊元素 ul列表 li列表 dl dt dd列表;注意ul和li一般是一塊使用
2.css
Css 文件
Css: 美化HTML的
選擇器:
元素選擇
類選擇
ID選擇
僞類選擇
常用的佈局方案
1 寫在什麼位置能好用。
1.1 元素裏面 優先級是最高的
1.2 元素外,文件內 優先級次之
1.3 外部文件
選擇器:
元素選擇器
js文件