对代码 <input type="button" value=

题目

对代码 理解正确的是:()

  • A、这段代码将显示一个提交按扭
  • B、window.location.href写法不正确,必须改为:window.location
  • C、escape表示对form2.MenuName.value的值进行URL编码
  • D、其中的?表示跳转到首页
参考答案和解析
正确答案:C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

阅读下列说明,回答问题1至问题3。

【说明】

某电子商务网站主页如图6-2所示:

以下是该网站主页部分的HTML代码,请根据图6-2将(1)~(5)的空缺代码补齐。

<html>

(1)非凡商务网站首页(2)

<!--(3)file="include/header.asp”-->

<table width="784" >

<tr >

.

.

.

<for…>

<td width="45%">

<input type="text" size="15" maxlength="15"(4)="关键字“ >

<select name="action" >

<option value="1"(5)>商品名称</option>

<option value="2 ">商品类别< / option>

<option value="3" >商品简介</option>

<option value=" 4 ">详细说明< / option>

</select>

<input type="submit" value="立即查询" >

<input type="button" value="高级查询" nClick="location.href=' search.

asp ' ">

</rd>

</form>

</tr>

</table>

</html>


正确答案:(1)title> (2)/title> (3)include (4)value (5)selected
(1)title> (2)/title> (3)include (4)value (5)selected 解析:本问题考查的是HTML的使用。
从试题提供的参考图可以看出,该页面的标题为“非凡商务网站首页”,表单中文本框默认文本为“关键字”,下拉列表框中,默认选择项是“商品名称”。

第2题:

下图是HTML文件submit.html在IE中的部分显示效果。

请完成下面submit.html中部分html代码。

<form. action=/cgi-bin/post-query method=POST>

您的姓名:

<input type=text name=姓名><br>

您的主页的网址:

<input type= text name=网址value=http://><br>

密码:

<input type= (44) name=密码><br>

<input type=submit value=“发送”><input type= (45) value=“重设”>

</form>

(44)

A.text

B.password

C.passwd

D.key


正确答案:B

第3题:

详细阅读下面的FORM. 表单和PHP代码。当在表单里面的两个文本框分别输入’php’和’great’的时候,PHP代码将在页面中打印出什么?( )

form. action=’index.php’ method=’post’

input type=’text’ name=’element[]’

input type=’text’ name=’element[]’

input type=’submit’ value=’提交’

/form

Index.php 代码如下:

?php

if(

A.什么都没有

B.Aarry

C.一个提示

D.phpgreat


参考答案:A

第4题:

阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。 【说明】 某学校新生入学后进行信息登记,其登记页面和登记后信息显示页面分别如图4-1和4-2所示。

【问题1】(9分) 以下是图4-1所示的index.asp页面的部分代码,请仔细阅读该段代码,将(1)~(9)的 的空缺代码补齐。 <title>学生档案</title> <body> <div aljgn="(1)”> <h1><strong>学生档案</strong><h1> </div> <form id="form1" name="form1” method=”(2)”action=show.asp”> <table width="485" border="1" align="center"> <tr> <td>姓名</td > <td><label for="name"></label> <input type="(3)”name=”name” id=”name”/></td> </tr> <tr> <td>性别</td> <td><input type=”(4)" name="sex" id="radio" value="男 " /> <label for="sex”>男 <input type="radio" name="sex" id="radio2" value=”女" /> 女</label></td> </tr> <tr> <td>城市</td> <td><label for="city"></label> <(5) name="city" id="city"> <option value="北京" selected="(6)”>北京</option> <option value=”上海”>上海</option> <option value="广州">广州</option> </select></td> </tr> <tl> <td>班级</td> <td><label for"class"></label> <input type="text" name="class" id="class"/></td> </tr> <tr> <td>爱好</td> <td><label for="favorite"></label> < (7)name="favorite" id="favorite" cols="45" rows= "5”></textarea></td> </tr> <tr> <td>&nbsp;</td> <td><input type=”(8)” name="button" id="button" value="提交" /> <input type=”(9)" name="button2" id="button2" value=”重新填写”/></td> </tr> </table> </form> </body> </html> (1)~(9)备选答案: A.submit B.selected C.post D.reset E.radio F.text G.center H.textarea I.select 【问题2】(6分) 学生输入信息并提交后,系统将回显学生信息,并显示登记位次。下面是显示学生登记位次的部分代码,请根据图4-2将下面代码补充完整。 <% Whichfile=server. mappath ("register.txt") set fs=server.(10)("Scripting.FileSystemObject") set thisfile=fs. opentexfile (whichfile) visitors= (11) .readline thisfile.close response.Write("<center><font size=5>你是第”&(12)&位登记者</font></center>”)%> …… //省略页面显示部分代码 <% visitors=visitors+1 set out=fs.(13)(whichfile) (14).writeLine (visitors) out.close set fs=(15) %> (10)~(15)备选答案: A.thisfile B.visitors C.nothing D.CreateObject E.out F.createtextfile


正确答案:【问题1】(9分)
(1)G
(2)C
(3)F
(4)E
(5)I
(6)B
(7)H
(8)A
(9)D
【问题2】(5分)
(10)D
(11)A
(12)B
(13)F
(14)E
(15)C
 


第5题:

● 下图是HTML文件submit.html在IE 中的部分显示效果。

请完成下面submit.html中部分html代码。

<form. action=/cgi-bin/post-query method=POST>

您的姓名:

<input type=text name=姓名><br>

您的主页的网址:

<input type=text name=网址 value=http://><br>

密码:

<input type=(44) name=密码><br>

<input type=submit value="发送"><input type=(45) value="重设">

</form>

(44)

A. text

B. password

C. passwd

D. key

(45)

A. send

B. reset

C. restart

D. replace


正确答案:B,B

第6题:

在网页中创建一个如下图所示的表单控件的HTML代码是______ 。

A.<input type=“text”name=“T1” size=“20”>

B.<textarea rows=“1”name=“T1” cols=“20”></textarea>

C.<input type=“radio”value=“T1”checked name=“R1”

D.<select size=“1”name=“T1”></sclect>


正确答案:B
解析:网页中的可输入表项及项目选择称为表单。在网页中可通过表单交流和反馈信息。本题要求的输入表项是一个多行文本框,可以用上下滚动行的方式显示多行。应使用textarea>标记来实现,其中name列出了控制操作名,rows和cols列出了不用滚动就可以看到的行数与列数(字符数)。选项A表明采用单行文本输入框;选项C表明采用单选按钮:选项D表明采用下拉式菜单选择框。

第7题:

增加表单的隐藏域的HTML代码是()

A. < input type=submit > 

B. < input type=iamge > 

C. < input type=text > 

D. < input type=hide > 


正确答案:D

第8题:

从以下备选答案内为程序中(5)~(9)处空缺部分选择正确答案。(5)A.CreatObject B.Connect C.ExecuteSQL D.Open()(6)A.<body> B.<html> C.<head> D.<table>(7)A.number B.recordnumber C.count D.recordcount(8)A.skip B.end for C.next D.loop(9)A.<input type="submit" name="add" value="添加">

B.<input type="post" name="add" value="添加">

C.<input type="submit" name="添加" value="add">

D.<input type="post" name="添加" value="add">


正确答案:(5)A或CreatObject (6)A或body> (7)D或recordcount (8)C或next (9)A或input type="submit" name="add" value="添加">
(5)A或CreatObject (6)A或body> (7)D或recordcount (8)C或next (9)A或input type="submit" name="add" value="添加"> 解析:本问题考查的是HTML和ASP编程的语法知识。
我们常说,ASP并不是一种语言,尽管看起来ASP的代码是以脚本的形式出现。Microsoft把ASP定义为一个脚本语言执行的环境。在HTML语言里,标示一个标签是用尖括号,在ASP语言里其实没有什么不同,唯一的区别仅仅是使用%%>来表示一个 ASP的脚本语言的开始和结尾。

第9题:

下面会出现列表框的基本语法是()。A.