前端标签记忆-学习笔记
- 强调标签:<em>斜体强调 <strong>粗体强调 直接用span控制也可以实现该效果 font-size font-weight
- 分行标签:<br/>
- 水平横线标签:<hr/> 效果: 6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 - 地址标签:<address>默认为独占一行斜体
- a标签里可以写邮件连接:<a href="mailto:*********?cc:********&bcc:*********&subject=**&body=**"</a>
- 表单:
<form method="post" action="save.php"> <label for="username">用户名:</label> <input type="text" name="username" /> <label for="pass">密码:</label> <input type="password" name="pass" /> </form>
-
<form action="save.php" method="post" >
<label>性别:</label>
<label>男</label>
<input type="checkbox" value="1" name="gender-man" />
<label>女</label>
<input type="checkbox" value="2" name="gender-woman" />
</form> - submit:提交 <input type="submit" value="提交" name="submitBtn" /> reset:重置
- letter-spacing控制文字间距
- 今天学JS遇到html的槛了,过来补一下
table:表格
1.caption 定义表格标题也就是表格的名字
2.<th> 表格的表头 粗体居中
3.<tr> 表格的行 <td>将行划分成多个单元格
4.<colgroup span="4" style="background-color:red"></colgroup> 这里是设置颜色
5.<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup> 可以分别给不同位置设置不同颜色 这里是两列红色 一列黄色
6.<thead> <tbody> <tfoot> 顾名思义 这里就不多说了