這兩個(gè)有區(qū)別嗎?
? ? <input type="text" placeholder="請(qǐng)輸入用戶名">
? ? <br>
? ? <input type="password" placeholder="請(qǐng)輸入密碼">
和
? ? <input type="text" placeholder="請(qǐng)輸入用戶名"/>
? ? <br>
? ? <input type="password" placeholder="請(qǐng)輸入密碼"/>
? ? <input type="text" placeholder="請(qǐng)輸入用戶名">
? ? <br>
? ? <input type="password" placeholder="請(qǐng)輸入密碼">
和
? ? <input type="text" placeholder="請(qǐng)輸入用戶名"/>
? ? <br>
? ? <input type="password" placeholder="請(qǐng)輸入密碼"/>
2021-10-08
舉報(bào)
2022-09-21
第一種寫法是錯(cuò)誤的,標(biāo)簽需要閉合<input />??? <hr />橫線 <br />回車 ?? ,文本框是屬于標(biāo)簽
2021-10-08
單標(biāo)簽 一般自閉合要加/ 比如<br />