1. 转义字符 non-break space, 不间断空格
2. 表格标签
<tr> table row, 表示表格中的行
<td> table data, 表示表格中的数据
<table border="" width="" height="" bgcolor="" align="表格对齐方式"> <tr align="内容对齐方式"> <th></th> <!--表头单元格--> <td></td> <!--普通单元格--> </tr> </table>
3. 图片标签★
<img src="图片的路径" alt="替代文字" width="900px" height="600px"/>
- src属性路径可用相对路径或绝对路径:
./或者什么都不写表示当前路径
../表示上级路径
- alt属性表示的是当在图片路径无法找到图片时,代替显示的内容
4. 超链接标签★
<a href="跳转的路径" target="在什么地方打开"></a>
没有确定跳转路径时,一般用href="#"代替
5. 表格标签 ★★
<table border="" width="" height="" bgcolor="" align="表格对齐方式">
表格标签可以定义 border, width, height, bgcolor, align等属性
6. form表单标签
常用属性
action:提交的路径
method:提交的方式(get和post)
常用子标签
input
select
textarea
input标签
常用属性:
type:
text
password
radio
checkbox
file
submit
reset
button
hidden
image
name:
要想将信息提交到服务器必须提供name属性
将单选框和复选框设置成一组
value:
text password 设置默认值
radio checkbox 设置选中后提交的值
submit reset button 给按钮起个显示的名字
select:下拉选
<select name="">
<option value="">显示的名字</option>
</select>
textarea:文本域
<textarea cols="" rows="" name="">默认值</textarea>
给单选框多选框设置默认值
设置属性 checked="checked"
给下拉选设置默认值
设置属性 selected="selected"