這段代碼什么意思?
<label for="username">用戶名:</label>
? ? ? ?<input type="text" name="username" />
? ? ? ?<label for="pass">密碼:</label>
? ? ? ?<input type="password" name="pass" />
<label for="username">用戶名:</label>
? ? ? ?<input type="text" name="username" />
? ? ? ?<label for="pass">密碼:</label>
? ? ? ?<input type="password" name="pass" />
2015-04-01
舉報
2015-04-05
<label for="username">用戶名:</label>
?for 屬性規定 label 與哪個表單元素綁定,和id不同,你點擊用戶名字的時候光標會自動彈到輸入框
<input type="text" name="username" />
?type="text" 文本類型,可見
<label for="pass">密碼:</label>
同上
<input type="password" name="pass" />
type="password"自然就是不可見咯
2015-04-02
<label> 標簽為 input 元素定義標注(標記)
<input> 標簽為輸入框
input? 的? type類型
button
checkbox
file
hidden
image
password
radio
reset
submit
text
2015-04-02
形成一個表單,可以輸入用戶名密碼