写一个简单的HTML文档。要求:制作一张表单,该表单提交给某页面处理。表单利用表格排版,并包括文本框、单选/复选框、下拉框、文本域、按钮。有意向,会做的,请联系.
一道简单的网页编程题目
- 提问者网友:相思似海深
- 2021-05-02 04:38
- 五星知识达人网友:旧脸谱
- 2021-05-02 05:17
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" id="form1">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>文本框</td>
<td><input type="text" name="textfield" id="textfield" /></td>
</tr>
<tr>
<td>单选</td>
<td><input type="radio" name="radio" id="radio" value="radio" />
<input type="radio" name="radio2" id="radio2" value="radio2" />
<input type="radio" name="radio3" id="radio3" value="radio3" /></td>
</tr>
<tr>
<td>复选框</td>
<td><input type="checkbox" name="checkbox" id="checkbox" />
<input type="checkbox" name="checkbox2" id="checkbox2" />
<input type="checkbox" name="checkbox3" id="checkbox3" /></td>
</tr>
<tr>
<td>下拉框</td>
<td><select name="select" id="select">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
</select> </td>
</tr>
<tr>
<td>文本域</td>
<td><input type="file" name="fileField" id="fileField" /></td>
</tr>
<tr>
<td>按钮</td>
<td><input type="submit" name="button" id="button" value="提交" />
<input type="reset" name="button2" id="button2" value="重置" /></td>
</tr>
</table>
</form>
</body>
</html>