<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<center><h1>用户注册</h1>
用户名:<input type="text" maxlength="10" placeholder="请输入用户名称"><br>
密码:<input type="password" placeholder="请输入密码"><br>
性别:<input type="radio" name="性别">男
<input type="radio" name="性别">女<br>
爱好:<input type="checkbox" name="hobby">唱
<input type="checkbox" name="hobby">跳
<input type="checkbox" name="hobby">rap
<input type="checkbox" name="hobby">篮球<br>
邮箱:<input type="email" placeholder="请输入邮箱"><br>
用户头像<input type="file"><br>
家庭住址<select name="city" id=""><option value="">请输入你的地址</option></select><br>
收货地址<select name="address" id="" size="3">
<option value="">北京</option>
<option value="">上海</option>
<option value="">南京</option>
</select><br>
建议或意见<textarea name="建议或意见" id="" cols="30" rows="10"></textarea><br>
选择你喜欢的颜色<input type="color">注册时间<input type="datetime-local"><br>
<input type="submit"><input type="reset">
</center>
</body>
</html>
11.16
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>11.14作业</title>
</head>
<body>
<form><p><center><strong>用户注册</p>
<p>用户名:<input type="text" name="用户名" maxlength="10" placeholder="请输入用户名称"></p>
<p>密码:<input type="text" name="密码" maxlength="8" placeholder="请输入密码"</p>
<input type="radio" name="性别">男
<input type="radio" name="性别">女
<br>
</select>
爱好
<input type="checkbox" name="hobby">摸鱼
<input type="checkbox" name="hobby">睡觉
<input type="checkbox" name="hobby">干饭
<input type="checkbox" name="hobby">敲代码
<input type="checkbox" name="hobby">打游戏
<br>
省份:<select name="city">
<option value="陕西省">陕西省</option>
<option value="江苏省">江苏省</option>
<option value="新疆省">新疆省</option>
<option value="山西省">山西省</option>
<br>
自我介绍:<textarea name="自我介绍"></textarea>
<br>
<input type="submit" name="提交">
<input type="submit" name="重置"></strong></center></form>
</body>
</html>
笔记
<img src="../day1/zl.jpg" alt="" width="100px" align="middle" hspace="1opx" vspace="10px">文字与图片居中·图片水平距离·垂直距离
<a href="https://hao.360.com/?a1004" target="_self">超链接当前页面跳转</a>
<a href="https://hao.360.com/?a1004" target="_blank">超链接下一页面跳转</a>
<p>为标签属性同一HTML中id不能重复</p>
<div>本身没有任何意思用于划区域</div>
<span>用于代码的区域标注</span>
<video src="" controls autoplay muted width="">视频标签自动播放:自动播放与静音配合使用</video>
<audio src="" controls>音频标签</audio>
<!--表单-->
<form>表单用于传输信息<strong>对于表单及其重要</strong></form>
<input type="password">密码隐藏
<input type="radio" name="" value="">单选:名字一定相同下单选value用于提交信息
<br>
<input type="checkbox">用于多选
<input type="submit">按钮
<input type="textare">文本域
<select>下拉框
<option>选项</option>
</select>
disabled用于禁用
checked/selected用于默认勾选
placeholder用于文本框提示
<input type="url">提示输入网址