15.回顾

回顾:
	html:
		表单 form	
			三个子标签  input select textarea
			input(10个)
				text
				password
				radio
				checkbox
				file
				submit
				reset
				button
				image
				hidden
			若想把信息发送到服务器,必须有Name属性
				select格式:
					<select name="名字">
						<option value="值1">显示的名字1</option>
						<option value="值2">显示的名字2</option>
						<option value="值3">显示的名字3</option>
					</select>
				textarea格式:
					<textarea name="名字" cols="30" rols="4"></textarea>
			默认值的问题:
				text和password通过value属性
				radio和checkbox通过checked="checked"属性
				select通过selected="selected"属性
				textarea直接在标签体中写内容
			form的属性
				action:设置提交路径
				method:设置提交方式
		table:声明表格
			常见的子标签:
				tr:行 要求至少含有一个td或th
				td:列
				th:表头 特点:居中加粗
			常见属性:
				border
		<a href="跳转路径" target="打开方式"></a>
		<img src="路径" alt="替换文字"/>
		<div></div> 
		<span></span>
		<br/>:换行
		<hr/>:分割线

  

posted @ 2017-12-15 16:04  一日看尽长安花cxjj  阅读(115)  评论(0)    收藏  举报