html 基本组件


<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form>
<table>
<tr>
<td>
<label>国家</label>

</td>
<td>&nbsp;</td>
<td>
<select name=levels>
<option value="中国">
德国
<option value="德国">
中国
<option value="英国">
意大利
</select>
</td>

<tr>
<td>职业</td>
<td>
<input type=radio name="worker" value="11">
</td>
<td>工人</td>
<td>
<input type=radio name="farmer" value="55">
</td>
<td>农民</td>
</tr>


<tr>
<td>
<label>选择</label>
</td>
<td>
<input type=checkbox name="wo "/>
</td>
<td>
<label>我</label>
</td>
<td>
<input type=checkbox name="ni" >
</td>
<td>
<label>你</label>
</tr>


<tr>
<td>
<label>添加文件</label>
</td>
<td>
<input type=file name="file"/>
</td>
<td>
<label>添加</label>
</td>

<td><br><br></td>

<td>
<label>提交测试</label>
</td>
<td>
<input type=file name="file"/>
</td>
<td>
<input type=submit name="提交"/>

</td>

</tr>
<td>
<br>
</td>
<tr>
<td>
<form>
<textarea name="text" ></textarea>
</form>
</td>
<td>
<br>
</td>
<td>
<label>用户名</label>
</td>
<td>
<input type=text name="text">
</td>
<td>
<label>密码</label>
</td>
<td>
<input type="text" name="text">
</td>
</tr>


<tr>

</table>
</form>

		

</body>
</html>

你可能感兴趣的:(java,html)