web基础
- 1 认识URL,观察常用网站网址,区分不同组成部分。uscheme://host:port/path/?query-string=xxx#anchor11
在互联网上常用来表示网址的是“IP”地址、域名和“URL”。
例如:中国清华大学的域名地址为:www.tsinghua.edu.cn,它的四部分分别代表WWW服务器、校名即机构名、网络名(edu为教育部门网络)、国名(cn代表中国)。然而,这还不足以真正确定每台计算机在互联网中的具体位置,要定位所有计算机或网络就必须使用URL,也就是统一资源定位器,这才是我们通常所说的网址。
我们现在浏览的电脑软硬件应用网,它的URL也就是网址为:http://www.45it.com 可以很容易地看出,网址和域名是有区别的。
- 2 观察web浏览过程.
- 3 HTML基础。练习使用标签制作简单的页面。
<body> <h2>郑爽探班男朋友……what?男盆友!!</h2> <a href="https://item.btime.com/42tgdc2v0418j4r2du85ah0n0k4"><br>鹿晗的恋情曝光热度还未下降,听说又有新的恋情曝光啦!<br>同样是一对人气小鲜肉和人气小花,究竟又是谁呢?又将擦出怎样的火花?<br><img src="https://p0.ssl.cdn.btime.com/t01679ffa7c6e64e800.jpg?size=640x360" width="600" height="400" alt="gzcc.cn" ></a> </body> <div id="container" style="width:400px " > <div id="header" style="background-color:yellow;"><h2 align="center" style="margin-bottom:0;">登录</h2></div> <div id="content" style="background-color:#EEEEEE;height:150px;width:400px;float:left;"> <form action=""> Username:<input type="text" name="user"><br> Password:<input type="password" name="password"> <br> <input type="button" value="login"> <input type="button" value="cancel"> </form> </div> <div id="footer" style="background-color:yellow;clear:both;text-align:center;">版权 © duym</div> </div> <P></P> <a href="http://www.gzcc.cn/">广州商学院<br><img src="http://www.gzcc.cn/2016/images/banner.png" width="600" height="200" alt="gzcc.cn" ></a> </html>