<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>首页</title>
</head>
<body style="background-color: beige;">
<div style="width: 200px;height: 200px;">
<form action="">
<fieldset>
<legend style="text-align: center;">登录框</legend>
用户名:<input type="text" name="username">
密码:<input type="text" name="password">
<input type="button" name="name" value="提交">
</fieldset>
</form>
</div>
</body>
</html>
运行结果: