1.html文件的基本架构
|
<HTML> <TITLE> 网页的标题 </TITLE> 网页的内容,很多标记都作用于此 </BODY> |
2.
*. 用html写一个登录界面

代码:
<!doctype html>
<html>
<body>
<table align="center"
border="1"
width="600px"
>
<tr><td>
<h2> <p align="center"><b>登录</b></p> </h2>
<hr />
<form action="/index" method="post" >
<input type="hidden" value="隐藏信息" >
<div>姓名</div>
<div><input type="text"> </div>
<div>密码</div>
<div><input type="password"> </div>
<a href="http://www.baidu.com">注册</a>
<a href="http://www.baidu.com">忘记密码</a>
<p align="center">
<input type="button" value="登录" />
<input type="reset" value="重置" /><br />
</p>
</form>
</tr>
</table>
</body>
</html>