- img src alt width height
- a 链接 空连接 1、href =“##” 2、href="javascript:;" 3、href=" javascript:void(0);"
- 锚定 href ="#" 返回顶部 href="#id" id标签内容置顶
- 表单
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> page 03 </title>
</head>
<body>
<form action=" " method="post">
账号:<input type="text" name="username" id="name" placeholder="请输入用户名"/>
<br/>
密码:<input type="password" name="pwd" id="pwd" placeholder="password"/>
<br/>
性别:<input type="radio" name="sex" id="man"/><label for="man">男</label>
<input type="radio" name="sex" id="woman"/><label for="woman">女</label>
<input type="radio" name="sex" id="others" checked ="checked"/><label for="others"> 其他</label>
<br/>
地址:<select name="">
<option value="jingxi">江西</option>
<option value="anhui">安徽</option>
</select>
   
<select>
<optgroup label="江西">
<option value="3601">南昌</option>
<option value="3602">赣州</option>
</optgroup>
<optgroup label= "安徽">
<option value="3401">合肥</option>
<option vaule="3402">芜湖</option>
</optgroup>
</select>
<br/>
       <textarea rows="10" cols="10" placeholder="请输入文字"></textarea><br/>
爱好:<input type="checkbox" checked="checked id="read"/><label for="read">读书</label>
<input type="checkbox" id="write"/><label for="write">写作</label>
<br/>
<input type="submit" value="post"/>
<input type="reset" value="reset"/>
<input type="button" value="button"/>
</form>
</body>
</html>
运行图片.png
网友评论