html学习第一天

1,<!DOCTYPE html>   --Doctype告诉浏览器使用什么样的html或xhtml规范来解析html文档
2,< meta http-equiv=“content-type” content=“text/html;charset=utf-8”>--
页面编码(告诉浏览器是什么编码)
< meta http-equiv=“Refresh” Content=“30″>
< meta http-equiv=”Refresh“ Content=”5; Url=http://www.autohome.com.cn“ /> --刷新和跳转
< meta name="keywords" content="星际2,星际老男孩,专访,F91,小色,JOY" > --关键词
<meta name="description" content="博客园是一"> --描述
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> --兼容浏览器模式
3,<title>Title</title> --标题
4,<p></p>和<br /> --段落和换行
5,< a href="http://www.autohome.com.cn",target="_black"> </a> --超链接, target 属性
< a href="#1234"> </a> --锚
6,<h1>Alex</h1>
<h2>Alex</h2>
<h3>Alex</h3>
<h4>Alex</h4>
<h5>Alex</h5>
<h6>eric</h6> --h标签
7,<span>hello</span>
<span>hello</span>
--span标签
8,<div></div> -div标签
9,<input type="text" />
<input type="password" />
<input type="button" value="登录1"/>
<input type="submit" value="登录2"/>
<input type="reset" value="重置" />
男:<input type="radio" name="gender" value="1" />
女:<input type="radio" name="gender" value="2" checked="checked"/>
Alex:<input type="radio" name="gender" value="3"/>

篮球:<input type="checkbox" name="favor" value="1" />
足球:<input type="checkbox" name="favor" value="2" checked="checked" />
皮球:<input type="checkbox" name="favor" value="3" />
台球:<input type="checkbox" name="favor" value="4" checked="checked"/>
网球:<input type="checkbox" name="favor" value="5" /> --input标签

10,<select>
<option value="1"> </option>
<option  value="2"> </option>
<option  value="3" selected="selected"> </option>
<option  value="4"> </option>
</select> --select 标签

11,<textarea></textarea> --textarea标签
12,<form enctype="multipart/form-data">
<input type="file" name="fname"/>
</form> --input 上传文件 配合form表单 属性enctype

13 from表单 post /get 方法理解

 

 

猜你喜欢

转载自www.cnblogs.com/jiyaliang/p/9329871.html