HTML 表單input按鈕
阿新 • • 發佈:2022-04-21
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <form action=""> 使用者名稱: <input type="text" placeholder="請輸入使用者名稱"> <br> <br> 密碼:<input type="password" placeholder="請輸入密碼"> <br> <br> <!-- 按鈕 --> <input type="submit" value="登入"> <input type="reset"> <input type="button" value="新使用者註冊送三天會員"> <br> <br> <button>我是按鈕</button> <button type="submit">提交按鈕</button> <button type="reset">重置按鈕</button> <button type="submit">普通按鈕, 沒有任何反應</button> </form> </body></html>