HTML5用戶注冊頁面源代碼:
<!DOCTYPE html> <html> <head> <title>用戶注冊頁面</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> </head> <body> <form action="/" method="post"> <h1>用戶注冊</h1> <label for="username">用戶名</label> <input type="text" id="username" name="username" required> <label for="email">電子郵件地址</label> <input type="email" id="email" name="email" required> <label for="password">密碼</label> <input type="password" id="password" name="password" minlength="8" maxlength="16" required> <label for="confirm-password">確認密碼</label> <input type="password" id="confirm-password" name="confirm-password" minlength="8" maxlength="16" required> <input type="submit" value="注冊"> <p>已經有賬號?<a href="login.html">登錄</a></p> </form> </body> </html>
以上是一個簡單的HTML5用戶注冊頁面源代碼,包含輸入用戶名、電子郵件地址、密碼、確認密碼等信息,并且有注冊按鈕和登錄鏈接,可以方便地進行用戶注冊和登錄操作。