在学习了最基本的网页元素后,接触到了表单,下面是用HTML写的很基础的表单,中间设计到了一点点CSS的内容,不算复杂。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>表单综合实例</title>
<style type="text/css">
input.ann{
border: 2 solid #2B2727;
color: antiquewhite;
font-size: 12pt;
height: 30px;
background: #999999;
}
</style>
</head>
<body>
<form name="表单实例" method="post" action="">
<table width="500" border="0" align="center" cellpadding="0"
cellspacing="2">
<tr>
<td width="143" height="25">姓名:</td>
<td width="351">
<input name="name" type="text" id="name" size="20"></td>
</tr>
<tr>
<td height="25">年龄:<