英[??np?t]? ?美[??n?p?t]??

n.輸入,投入;輸入電路;<電>輸入端;輸入的資料

vt.把…輸入電腦; [自][電子] 輸入;輸入,給料

第三人稱單數(shù): inputs 複數(shù): inputs 現(xiàn)在分詞: inputting 過去式: input inputted 過去分詞: input inputted

html input標(biāo)籤 語(yǔ)法

作用:用於蒐集使用者輸入資訊。

說明:根據(jù)不同的 type 屬性值,輸入欄位擁有很多種形式。輸入欄位可以是文字欄位、複選框、遮罩後的文字控制項(xiàng)、單選按鈕、按鈕等等。

註解:在 HTML 中,<input> 標(biāo)籤沒有結(jié)束標(biāo)籤。在 XHTML 中,<input> 標(biāo)籤必須正確地關(guān)閉。

html input標(biāo)籤 範(fàn)例

<!DOCTYPE html>
<html>
<body>

<form action="">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form> 

</body>
</html>

運(yùn)行實(shí)例?

點(diǎn)擊"運(yùn)行實(shí)例"按鈕查看線上實(shí)例

<!DOCTYPE html>
<html>
<body>

<form action="">
文本框:<br>
<input type="text">
<br>
密碼:<br>
<input type="password">
<br>
單選框:<br>
<input type="radio">
<br>
提交按鈕:<br>
<input type="submit">
<br>
</form> 

</body>
</html>

運(yùn)行實(shí)例?

點(diǎn)擊"運(yùn)行實(shí)例" 按鈕查看線上實(shí)例

#