JSP运行环境安装及常用HTML标记使用

时间:2025-04-15 07:37:28
<!-- register.html -->
<!DOCTYPE html>
<html>

<head>
    <title>注册页面</title>
    <style>
        form {
            background-color: #f9f9f9;
            padding: 20px;
            border: 1px solid #ccc;
        }

        label {
            display: block;
            margin-bottom: 5px;
        }

        input[type="text"] {
            width: 100%;
            padding: 8px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
        }

        input[type="password"] {
            width: 100%;
            padding: 8px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
        }

        input[type="submit"] {
            background-color: #008CBA;
            color: white;
            padding: 10px 15px;
            border: none;
            cursor: pointer;
        }
    </style>
</head>

<body>
<form>
    <label for="new_username">新用户名:</label>
    <input type="text" id="new_username" name="new_username"><br>
    <label for="new_password">新密码:</label>
    <input type="password" id="new_password" name="new_password"><br>
    <label for="confirm_password">确认密码:</label>
    <input type="password" id="confirm_password" name="confirm_password"><br>
    <input [type="submit"] value="注册">
</form>
</body>

</html>