日期:2014-05-17  浏览次数:20647 次

html复习2:基础
<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title></title>
</head>
<body>
--------------------------------------------------------------
<form>
	your car:
	<select name="cars">
		<option value="volvo">Volvo</option>
		<option value="saab">Saab</option>
		<option value="fiat">Fiat</option>
		<option value="audi">Audi</option>
	</select><br />
	Fir name: 
	<input type="text" name="firstname" /><br />
	Las name: 
	<input type="text" name="lastname" /><br />
	
	<input type="radio" name="sex" value="male" /> Male<br />
	
	<input type="radio" name="sex" value="female" /> Female<br />
	
	<input type="checkbox" name="bike" />I have a bike<br />
	<input type="checkbox" name="car" />I have a car
</form>
---------------------------------------------------------------
<form name="input" action="" method="get">
	Username: 
	<input type="text" name="user" />
	<input type="submit" value="Submit" />
</form>
---------------------------------------------------------------
<fieldset>
<legend>健康信息:</legend>
<form>
<p><label>身高:<input type="text" /></label></p>
<p><label>体重:<input type="text" /></label></p>
</form>
</fieldset><br />


<textarea rows="10" cols="30">
The cat was playing in the garden.
</textarea><br />
--------------------------------------------------------------
</body>
</html>