课程导航
期末考试还没结束,答案还未知,本节所有题目的正确率不负责。
1.audio元素中src属性的作用是( )。
编号 |
选项 |
A |
插入一段替换内容 |
B |
循环播放 |
C |
提供播放、暂停和音量的控制条 |
D |
设定要播放音频的URL |
2.哪一个不是HTML5新增的语义化标记元素( )。
编号 |
选项 |
A |
article |
B |
foot |
C |
aside |
D |
section |
3.以下标记中,没有对应的结束标记的是( )。
编号 |
选项 |
A |
<body> |
B |
<title> |
C |
<html> |
D |
<br> |
4.( ) 给所有的
标签添加背景颜色。
编号 |
选项 |
A |
.h1 {background-color:#fff} |
B |
h1.all {background-color:#fff} |
C |
#h1 {background-color:#fff} |
D |
h1 {background-color:#fff;} |
5.( )去掉文本超级链接的下划线。
编号 |
选项 |
A |
a{text-decoration:no-underline} |
B |
a {text:no-underline} |
C |
a {text-decoration:none} |
D |
a {underline:none} |
6.若要在网页中插入样式表main.css,以下用法中,正确的是( )。
编号 |
选项 |
A |
<include href=”main.css” type=text/css> |
B |
<link href=”main.css” type=text/css rel=stylesheet> |
C |
<link src=”main.css” type=text/css rel=stylesheet> |
D |
<include href=”main.css” type=text/css rel=stylesheet> |
7.HTML文档的树状结构中,( )标签为文档的根节点,位于结构中的最顶层。
编号 |
选项 |
A |
<head> |
B |
<!DOCTYPE> |
C |
<body> |
D |
<html> |
8.( )CSS属性能够设置盒模型的内边距为上侧10,下侧20,右侧30,左侧40(单位px)。
编号 |
选项 |
A |
padding:10px 30px 20px 40px |
B |
padding:10px 40px 20px 30px |
C |
padding:10px 20px 30px 40px |
D |
padding:40px 30px 20px 10px |
9.( )描述了JavaScript的基本语法。
编号 |
选项 |
A |
BOM |
B |
DOM |
C |
ECMAScript |
D |
JScript |
10.编写Javascript函数实现网页背景色选择器,下列选项中正确的是( )。
编号 |
选项 |
A |
function change(color){ form.bgColor=color;} |
B |
function change(color){ window.bgColor=color;} |
C |
function change(color){ body.bgColor=color;} |
D |
function change(color){ document.bgColor=color;} |
11.在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是( )。
编号 |
选项 |
A |
<input name=”mybutton” type=”button” onFocus=”compute()” value=”计算”> |
B |
<input name=”mybutton” type=”button” onClick=”function compute()” value=”计算”> |
C |
<input name=”mybutton” type=”button” onClick=”compute” value=”计算”> |
D |
<input name=”mybutton” type=”button” onClick=”compute()” value=”计算”> |
12.分析下段代码输出结果是( )。 var arr = [2,3,4,5,6]; var sum =0; for(var i=1;i < arr.length;i++) { sum +=arr[i]; } console.log(sum);
编号 |
选项 |
A |
14 |
B |
16 |
C |
20 |
D |
18 |
13.下面代码,k的运行结果是( )。 var i = 0,j = 0; for(;i<10,j<6;i++,j++){ k = i + j; }
14.以下关于定位错误的是( )。
编号 |
选项 |
A |
绝对定位与相对定位参照物不同,绝对定位元素相对于也进行了相对或者绝对定位的父元素进行定位,如果没有这样的父元素,则相对于body定位 |
B |
相对定位元素脱离文档流,原有位置不会被保留 |
C |
绝对定位和相对定位都属于层定位,可以用z-index设置层叠次序 |
D |
绝对定位元素脱离文档流,原有位置不会被保留 |
15.用来输入密码的表单域是( )。
编号 |
选项 |
A |
<input type=”text” …….> |
B |
<input type=”reset” …….> |
C |
<input type=”password” …….> |
D |
<input type=”submit” …….> |