一、表單內容只讀:readonly="readonly":輸入字段爲只讀html
二、placeholder="content":提示信息,適用於 input 類型:text、search、url、tel、email 和 passwordurl
三、<fieldset><legned></legned></fieldset>:能夠將表單中的多個元素分組顯示,<legned></legned>給分組的<fieldset></fieldset>添加標題spa
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>fieldset和legend標籤</title> </head> <body> <form action="" method=""> <fieldset id=""> <legend>帳戶信息</legend> <p>會員名:<input type="text" name="" id="" placeholder="請輸入會員名" readonly="readonly"></p> <p>登陸密碼:<input type="password" name="" id=""></p> <p>驗證碼:<input type="text" name="" id="" value="xiaozhou" readonly="readonly"/></p> </fieldset> </form> </body> </html>