HTML网页设计-带答案
1、哪个 HTML 属性可用来定义内联样式( )(选1项)
A)font
B)class
C)styles
D)style √
2、如何为所有的
元素添加背景颜色( )(选1项)
A)h1.all {background-color:#FFFFFF}
B)h1 {background-color:#FFFFFF} √
C)all.h1 {background-color:#FFFFFF}
D)h1 {color:#FFFFFF}
3、在css中,与rgb(50%,0%,50%)表示的颜色相同的是( )(选1项)
A)rgb(128,0,128) √
B)#FF00FF
C)#F0F
D)rgb(255,0,255)
4、CSS 指的是( )(选1项)
A)Computer Style Sheets
B)Cascading Style Sheets √
C)Creative Style Sheets
D)Colorful Style Sheets
5、下面css语法有误的是 ( )(选1项)
A)h3,h4&h5{color:red} √
B)body{font-size:20px;}
C)a{color:red}
D)font.html{color:blue}
6、一条css语句的基本结构主要有哪几个部分组成( )(选3项)
A)选择符 √
B)函数名
C)属性名 √
D)属性值 √
E)事件处理句柄
7、在css的文本属性中,text-decoration:overline表示( )(选1项)
A)不用修饰
B)下划线
C)上划线 √
D)横线从文字中间穿过
8、外部样式表文件的扩展名为( )(选1项)
A).JS
B).DOC
C).HTML
D).CSS √
9、如何显示这样一个边框:上边框 10 像素、下边框 5 像素、左边框 20 像素、右边框 1 像素( )(选1项)
A)border-width:10px 5px 20px 1px
B)border-width:10px 20px 5px 1px
C)border-width:5px 20px 10px 1px
D)border-width:10px 1px 5px 20px √
10、在以下的 CSS 中,如何改变元素的左边距( )(选1项)
A)text-indent
B)margin-left √
C)margin-right
D)padding
11、在以下的 CSS 中,如何使文本变为粗体( )(选1项)
A)font:b
B)font-weight:bold √
C)style:bold
D)font-style:bold
12、在以下的 CSS 中,如何使文本变为斜体( )(选1项)
A)font:italic
B)font-weight:italic
C)font-family:italic
D)font-style:italic √
13、在以下的 CSS 中,可使所有
元素变为粗体的正确语法是( )(选1项)
A)
B)
C)p {font-weight:bold} √
D)p {text-size:bold}
14、在以下的 CSS 中,如何显示没有下划线的超链接( )(选1项)
A)a {text-decoration:none} √
B)a {text-decoration:no underline}
C)a {underline:none}
D)a {decoration:no underline}
15、在css中,如何改变某个元素的文本颜色( )(选1项)
A)text-color
B)color √
C)fgcolor
D)fontcolor
16、哪个 CSS 属性可控制文本的尺寸( )(选1项)
A)font-size √
B)font-style
C)font-weight
D)text-size
17、HTML的中注释符是( )(选1项)
A)//this is a comment
B)//this is a comment//
C)/*this is a comment*/
D) √
18、CSS的注释符是( )(选1项)
A)//this is a comment//
B)//this is a comment
C)/*this is a comment*/ √
D)'this is a comment
19、如果你想改变移动标记的移动方式,应该改变