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

n.輸入,投入;輸入電路;<電>輸入端;輸入的數(shù)據(jù)

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

第三人稱(chēng)單數(shù): inputs 復(fù)數(shù): inputs 現(xiàn)在分詞: inputting 過(guò)去式: input inputted 過(guò)去分詞: input inputted

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

作用:用于搜集用戶(hù)輸入信息。

說(shuō)明:根據(jù)不同的 type 屬性值,輸入字段擁有很多種形式。輸入字段可以是文本字段、復(fù)選框、掩碼后的文本控件、單選按鈕、按鈕等等。

注釋?zhuān)?/strong>在 HTML 中,<input> 標(biāo)簽沒(méi)有結(jié)束標(biāo)簽。在 XHTML 中,<input> 標(biāo)簽必須被正確地關(guān)閉。

html input標(biāo)簽 示例

<!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í)例" 按鈕查看在線(xiàn)實(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í)例" 按鈕查看在線(xiàn)實(shí)例