<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>用表单集制作登录表单</title> </head> <body> <!-- 用表单控件分组 <fieldset>,了解即可,实际工作中用得极少 --> <form action="" method="post"> <fieldset> <legend>用户登录</legend> <p><label>邮箱:<input type="email" name="email" placeholder="example@mail.com"></label></p> <p><label>密码:<input type="email" name="email" placeholder="Password"></label></p> <hr width="90%" color="lightskyblue"> <p><button type="submit" name="submit">立即登录</button></p> </fieldset> </form> </body> </html>
Atas ialah kandungan terperinci html制作登录表单. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!