<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> </head> <head> </head> <body> <form name="myForm" action="demo-form.php" οnsubmit="return validateForm();" method="post"> required为空不提交: <input type="text" name="fname" required="required"> 用户名: <input type="text" name="fname"> 密码密码字段中的字符是隐藏的(显示为星号或圆圈)Password: <input type="password" name="pwd"> 选择一个文件: <input type="file" name="img"> 隐藏字段hidden <input type="hidden" name="country" value="Norway"> Email: <input type="text" name="email" required="required"> 只能输入纯数字的输入框:<input type="text" name="
文章评论