A: input
B: text
C: username
D: user
举一反三
- [label for=”()”]会员账号:[/][input type=”text” name=”username” id=”user”]上面代码中,会员账号是文本框的标签。 A: input B: text C: username D: user
- 增加表单的单行文本框的HTML代码是( ) A: <input type=“submit”> B: <input type=“image”> C: <input type=“text”> D: <input type=“hide”>
- HTML表单中,添加文本域的HTML代码是( ) A: <input type="submit"></input> B: <input type="text"></input> C: <input type="radio"></input> D: <input type="checkbox"></input>
- 以下哪种语句是实现表单提交的动作?( )[2分] A: <input type=submit name=**> B: <input type=reset name=**> C: <input type=text name=**> D: <input type=password name=**>
- <input>元素拥有多个type属性值,表示单行文本输入框的是() A: <input type="text"> B: <input type="password"> C: <input type="radio"> D: <input type="checkbox">
内容
- 0
用来输入密码的表单域是( )。 A: <input type=”text” …….> B: <input type=”reset” …….> C: <input type=”password” …….> D: <input type=”submit” …….>
- 1
下列哪一项表示的不是按钮?() A: <input type=”text”> B: <input type=”reset”> C: <input type=”submit”> D: <input type=”button”>
- 2
在设计html表单时,若需PHP中使用$_POST["username"]变量获取用户在文本框中输入的用户名,应当设置该表单控件的哪一个属性?<input type="text" id="username" name="username" value="username"> A: class="username" B: id="username" C: name="username" D: value="username"
- 3
要给表单控件设置标签,以下代码中正确的是()。 A: <INPUTtype="checkbox"name="news"><LABELfor="news">新闻</LABEL> B: <INPUTtype="checkbox"for="news"><LABELid="news">新闻</LABEL> C: <INPUTtype="checkbox"for="news"><LABELname="news">新闻</LABEL> D: <INPUTtype="checkbox"id="news"><LABELfor="news">新闻</LABEL>
- 4
单行文本输入框的语法为? A: <input type="text" name="name" maxlength="value" size="value" value="value" /> B: <input type="password" name=" name" maxlength="value" size="value" /> C: <input type="radio" name="field_name" value="value" checked> D: <input type="checkbox" name=" name" value="value" checked />