今天我們來學習HTML5會員注冊表單的代碼,大家可以跟著下面的代碼一起學習哦。
<form> <fieldset> <legend>會員注冊</legend> <p> <label for="username">用戶名:</label> <input type="text" id="username" name="username" required> </p> <p> <label for="password">密碼:</label> <input type="password" id="password" name="password" required> </p> <p> <label for="email">電子郵箱:</label> <input type="email" id="email" name="email" required> </p> <p> <label for="birthday">生日:</label> <input type="date" id="birthday" name="birthday"> </p> <p> <label>性別:</label> <input type="radio" id="male" name="gender" value="male"> <label for="male">男</label> <input type="radio" id="female" name="gender" value="female"> <label for="female">女</label> </p> <p> <label for="agree">同意條款:</label> <input type="checkbox" id="agree" name="agree" required> </p> <p> <button type="submit">提交</button> </p> </fieldset> </form>
以上就是HTML5會員注冊表單的代碼了,大家可以復制粘貼到自己的代碼中嘗試哦。