电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

HTML+JS考试题VIP免费

HTML+JS考试题_第1页
1/8
HTML+JS考试题_第2页
2/8
HTML+JS考试题_第3页
3/8
1.在HTML中,下面()标签可以在页面上显示一个水平线。A.

B.

C.


D.
2.要实现以下功能:在网页中插入一个图片joke11.gif,使用者通过单击该图片,连接到joke11.htm上去。下面的HTML代码,()是正确的。A.B.C.D.3.css中想要文本垂直水平居中应该()(选两项)A.text-align:centerB.display:blockC.line-heightD.text-decoration4.下面哪两项不是块标签()。(选择两项)A.B.

C.
>
D.5.下列css语法结构,完全正确的是()A.P{font-size:12;color:red;}B.P{font-size:12;color:#red;}C.P{font-size:12px;color:red;}D.P{font-size:12px;color:#red;}6.阅读下面的JavaScript代码:functionf(y){varx=y*y;returnx;}for(x=0;x<5;x++){y=f(x);document.writeln(y);}输出结果是()。A.01234B.014916C.01491625D.以上答案都不对7.以下代码片段中,属于绝对定位的是()。A.#box{width:100px;height:50px;}B.#box{width:100px;height:50px;position:absolute;}C.#box{width:100px;height:50px;position:static;}D.#box{width:100px;height:50px;position:relative;}8.以下选项可以定义不带下划线的超链接是()。A.a{text-decoration:nounderline}B.a{underline:none}C.a{decoration:nounderline}D.a{text-decoration:none}9.在HTML中使用()标签引入css内部样式表。A.