課程
/前端開發(fā)
/HTML/CSS
/初識(shí)HTML(5)+CSS(3)-升級(jí)版
<input>和<input/>哪種寫法正確?
2021-03-20
源自:初識(shí)HTML(5)+CSS(3)-升級(jí)版 6-6
正在回答
xhml 是<input/>
html是<input>
但是一般使用<input/>
和版本有關(guān),不過html5官方文檔推薦空標(biāo)簽更推薦使用<input>這樣的方式
Void elements only have a start tag;Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single "/" (U+002F) character. This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.Void elements: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
類似于<br>/<br/>的版本問題吧,應(yīng)該都能用
舉報(bào)
HTML(5)+CSS(3)基礎(chǔ)教程8小時(shí)帶領(lǐng)大家步步深入學(xué)習(xí)標(biāo)簽用法和意義
4 回答<input>標(biāo)簽使用<input>和<input />都是正確的是嗎
4 回答input的用法
4 回答input和type的用法和意思是什么?
4 回答input
6 回答<input ....>與<input ..../>
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2021-05-14
xhml 是<input/>
html是<input>
但是一般使用<input/>
2021-04-07
和版本有關(guān),不過html5官方文檔推薦空標(biāo)簽更推薦使用<input>這樣的方式
Void elements only have a start tag;
Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single "/" (U+002F) character. This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.
Void elements: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
2021-03-20
類似于<br>/<br/>的版本問題吧,應(yīng)該都能用