HTML常见元素
<meta charset="utf-8">
char:字符 set:集合
charset:使用的字符集
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale-1.0, user-scalable=no">
viewport:视口
<base href="/"
基础路径
<a href="http://www.taobao.com" target="_blank">淘宝网</a>
target="_blank" :新窗口,新标签
<td colspan="2" rowspan="2">1</td>
colspan:占据行数 rowspan:占据列数
<form method="GET" action="http://www.qq.com">
用GET方法提交到aciton中
<option value="2" selected>二</option>
下拉框 selected:默认被选中
<input type="text" name="text1" />
<input type="password" name="password" />
type类型 text:文本 password:密码,不被看见
<input type="radio" name="radio1" id="radio1-1" />
<label>选项一</label>
<input type="radio" name="radio1" id="radio1-2" />
<label for="radio1-2">选项二</label>
type:radio,单选框
name相同的单选框只能选一个
label:标签,for="radio1-2"使点击标签也能选中 id=“radio1-2”
<button type="button">普通按钮</button>
<button type="submit">提交按钮</button>
<input type="submit" value="提交按钮二" />
<button type="reset">重置按钮</button>
type=“button”:无任何功能
type=“submit”:提交到action中url,在表单form中才有意义
type="reset“:重置表单
用input,type="sumbit"和button功能一样,也是在表单中才有意义,注意value