html css一些试题

1。在Dreamweaver中,设置超链接的属性时,目标框架设置为_blank时,表示: ( )

A.会在当前浏览器的最外层打开链
B.在当前框架打开链
C.会在当前框架的父框架中打开链接
D.会新开一个窗口来打开链接
正确答案: D 

2。无序列表的HTML代码是( )。

A.<li><ul>...</li>
B.<ul><li>...</ul>
C.<ol><li>...</ol>
D.<li><ol>...<li>
正确答案: B 

3。( 单选题 | 2 分)如何显示没有下划线的超链接( )。

A.a{text-decoration:none}
B.a{text-decoration:no underline}
C.a{underline:none}
D.a{decoration:no underline}
正确答案: A 

4。( 单选题 | 2 分)下列CSS代码,( )能控制鼠标悬浮其上的超链接样式。

A.a:link{color:#ff7300;}
B.a:visited{color:#ff7300;}
C.a:hover{color:#ff7300;}
D.a:active{color:#ff7300;}
正确答案: C  

5。( 单选题 | 2 分)下列关于超链接伪类( )是鼠标点击时的超链接样式。

A.a:link
B.a:visited
C.a:hover
D.a:active
正确答案: D 

6。( 单选题 | 2 分)在HTML网页中添加如下CSS样式,鼠标悬浮在链接上面时,网页中的链接呈现的颜色为( )。

body { color:red; }

a { color:black; }

a:link,a:visited { color:blue; }

a:hover,a:active { color:green; }
A.红色
B.绿色
C.蓝色
D.黑色
正确答案: B 

7。( 单选题 | 2 分)
在CSS中,要实现链接字体颜色为红色,无下划线,当鼠标移过时显示下划线的效果,以下选项正确的是( )。

A.a:link{color:#ff0000;}

a:hover{text-decoration:underline;}
B.a{color:#ff0000;text-decoration:none;}

a:hover{text-decoration:overline;}
C.a{text-decoration:underline;}

a:hover{color:#ff0000;text-decoration:none;}
D.a:link{color:#ff0000;text-decoration:none;}

a:hover{text-decoration:underline;}
正确答案: D

8。( 单选题 | 2 分)以下有关表单的说明中,错误的是( )。

A.表单通常用于搜集用户信息
B.在form标签中使用action属性指定表单处理程序的位置
C.表单中只能包含表单控件,而不能包含其他诸如图片之类的内容
D.在form标签中使用method属性指定提交表单数据的方法
正确答案: C 

9。( 单选题 | 2 分)在指定单选框时,只有将以下( )属性的值指定为相同,才能使它们成为一组。

A.type
B.name
C.value
D.checked
正确答案: B 

10。( 单选题 | 2 分)
在HTML中,关于表单描述错误的是( )。

A.<form>标签开始,以</form>标签结束
B.属性action是指表单提交的地址
C.属性method是指表单提交的方式
D.一个网页中只能有一个表单
正确答案: D 

你可能感兴趣的:(网页)