<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="get"action="#"> <!--readonly 只读点不了 --> <input type="text" name="sss" value="ssss" readonly /> <!--type="hidden"表示隐藏域 --> <input type="hidden" value="123" name="username" /> <!--disabied 禁用按钮 --> <input type="button" value="点击" disabled /> <br /> <input type="email" name="email"placeholder="请输入正确的邮箱地址" /> <input type="radio" name="n" id="1" /><label for="1">男</label> <input type="radio" name="n" id="2" /><label for="2">女</label> <!--pattern:输入的内容必须符合pattern里的内容 --> <input type="text"name="tel" pattern="\d+" /> <input type="submit" /> </form> </body> </html>