本次博客带领大家学习HTML中的页面结构分析。
| 元素名 | 描述 |
|---|---|
| header | 标题头部区域的内容(用于页面或页面中的一块区域) |
| footer | 标记脚部区域的内容(用于整个页面或页面中的一块区域) |
| section | Web页面中的一块独立区域 |
| article | 独立文章内容 |
| aside | 相关内容或应用(常用于侧边栏) |
| nav | 导航类辅助内容 |

<iframe src="" name="hello" frameborder="0" width="1000px" height="800px">iframe>
<a href="//player.bilibili.com/player.html?aid=55631961&bvid=BV1x4411V75C&cid=97257627&page=10" target="hello">点击跳转a>

<h1>注册h1>
<form action="firstHtml.html" method="post">
<p>名字:<input type="text" name="username">p>
<p>密码:<input type="password" name="pwd">p>
<p>
<input type="submit">
<input type="reset">
p>
form>
| 属性 | 说明 |
|---|---|
| type | 指定元素的类型。text、password、checkbox、radio、submit、reset、file、hidden、image和button,默认为text |
| name | 指定表单元素的名称 |
| value | 元素的初始值。type为radio时必须指定一个值 |
| size | 指定表单元素的初始宽度。当type为text或password时,表单元素的大小以字符为单位。对于其他类型,宽度以像素为单位 |
| maxlength | 当type为text或password时,输入的最大字符数 |
| checked | 当type为radio或checkbox时,指定按钮是否是被选中 |
<p>名字:<input type="text" name="username" value="1111" maxlength="8" size="30">p>
<p>性别:
<input type="radio" value="boy" name="sex">男
<input type="radio" value="girl" name="sex">女
p>
<p>爱好:
<input type="checkbox" value="sleep" name="hobby">睡觉
<input type="checkbox" value="code" name="hobby">敲代码
<input type="checkbox" value="chat" name="hobby">聊天
<input type="checkbox" value="game" name="hobby">游戏
p>
<p>按钮:
<input type="button" name="btn1" value="点击边长">
<input type="image" src="../resources/image/1.JPG" width="300px" height="300px">
p>
<p>
<input type="submit">
<input type="reset" value="点击清空表单">
p>
<p>下拉框:
<select name="列表名称" >
<option value="china">中国option>
<option value="us">美国option>
<option value="eth" selected>瑞士option>
<option value="yindu">印度option>
select>
p>
<p>反馈:
<textarea name="textarea" id="" cols="50" rows="10">文本内容textarea>
p>
<p>
<input type="file" name="files">
<input type="button" value="上传" name="upload">
p>
<p>搜索:
<input type="search" name="search">
p>
<p>音量:
<input type="range" name="voice" min="0" max="100" step="2">
p>
<p>邮箱:
<input type="email" name="email">
p>
<p>URL:
<input type="url" name="url">
p>
<p>数字:
<input type="number" name="num" max="100" min="0" step="1">
p>
<p>名字:<input type="text" name="username" value="1111" readonly>p>
<input type="radio" value="boy" name="sex" checked disabled>男
<p>密码:<input type="password" name="pwd" hidden>p>
<p>
<label for="mark">你点我试试:label>
<input type="text" id="mark">
p>
<p>名字:<input type="text" name="username" placeholder="请输入用户名">p>
<p>名字:<input type="text" name="username" placeholder="请输入用户名" required>p>
<p>自定义邮箱:
<input type="text" name="diymail" pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$">
p>
ut type="text" name="username" placeholder="请输入用户名" required>p>