ssplyh 发表于 2017-6-21 17:48:19

HTML2

  1. IIS是一个软件,在“客户端服务器”模型中,它是服务器端软件,它主要提供基于HTTP的文档服务,主要是WWW   的发送,以及FTP的文件下载服务。
      VS提供了“IIS Express”
  2. 绝对路径:当我在电脑硬盘中打开一个html文件,选择个浏览器运行,可以看到
     绝对路径
      相对路径:如果是在VS中运行个html网页,可以看到浏览器显示的地址是
     这里显示的是相对路径。
     lacalhost:本地服务器;25580: 代表端口号;VS运行了IIS Express
     
  3. HTML5: 手机端基本支持html5,但是因为兼容性问题,很多主流网站还是用低版本的html设计
      HTML: html 4.0
      XHTML: html 4.01
  
  4. 标签



<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<p>
<img src="../image/1.jpg" width="200" /><!--../表示上一级-->
<img src="/image/1.jpg" width="200" border="2" />    <!--第一个/代表根目录-->
<a href="http://www.baidu.com"><img src="/image/1.jpg" width="200" border="2" /> </a><!--图片和超链接结合-->
</p>
<br />
<br />
<br />
<!--表单元素,客户端控件-->
<!--action表示表单提交到哪里;方法get是以地址提交安全性低数据量小的表单,post提交全安性高的数据-->
<form action="http:// www.baidu.com" method="get">
<div>
<input type="text" />    <!--文本框-->
<input type="password" />   <!--密码框-->
<select>
<!--下拉框,可多选-->
<option>--请选择--</option>
<option>--香蕉--</option>
<option>--苹果--</option>
</select>
<input type="button" name="我是一个按钮" /> <!--按钮-->
<input type="file" /> <!--上传文件-->
</div>
<br />
<br />
<br />
<div>
<!--单选框-->
<input type="radio" name="sex" id="male" /> <label for="male">男 </label>
<input type="radio" name="sex" id="female" /><label for="female">女   </label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!--多选框-->
<input type="checkbox" id="circle" /><label for="circle">圆形</label>
<input type="checkbox" id="square" /><label for="square">正方形</label>
<input type="checkbox" id="triangle" /><label for="triangle">三角形</label>
<input type="reset" /> <!--清除-->
<input type="submit"/><!--提交-->
</div>
</form>
<br />
<br />
<br />
<textarea cols="20" rows="10"></textarea>   <!--多行文本框-->
<!--标签-->
<fieldset style="width:80px;height :100px;">
<legend >图书分类</legend>
</fieldset>
<br />
<br />
<abbr title="Hyper Text Markup Lanuage">HTML</abbr><!--缩写-->
&copy;   <!--版权符-->
&lt;html&gt; <!--转义-->
<br />
<audio src="../File/nanshannan.mp3" controls autoplay loop></audio><!--音频-->
<video src="../File/nanshannan.mp3" controls autoplay loop></video>   <!--视频-->
</body>
</html>
页: [1]
查看完整版本: HTML2