- 浏览器输入//地址,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文件