模块一 单元测试

1、单选题:
下面选项中,设置HTML5中的网页标题的是( )。
选项:
A:<title>网页标题</title>
B:<table>网页标题</table>
C:<header>网页标题</header>
D:<head>网页标题</head>
答案: 【<title>网页标题</title>

2、单选题:
HTML5中可替代<div id=“footer”></div>标记来定义页面底部的元素是( )。
选项:
A:header
B:footer
C:aside
D:nav
答案: 【footer

3、单选题:
可以声明<img/>标签图像路径的属性是( )。
选项:
A:alt
B:height
C:src
D:width
答案: 【src

4、多选题:
下列标记中,用来显示题目的标记是( )。
选项:
A:<h1></h1>
B:<br/>
C:<h6></h6>
D:<hr/>
答案: 【<h1></h1>;
<h6></h6>

5、多选题:
下列标记中,可以进行列表嵌套的标记是( )。
选项:
A:<ol></ol>
B:<td></td>
C:<ul></ul>
D:<tfoot></tfoot>
答案: 【<ol></ol>;
<ul></ul>

6、多选题:
下列标记中,可以实现文字加粗标记是( )。
选项:
A:<i></i>
B:<strong></strong>
C:<del></del>
D:<b></b>
答案: 【<strong></strong>;
<b></b>

7、多选题:
下列图片类型中支持透明的图像格式有( )。
选项:
A:jpg格式
B:png格式
C:gif格式
D:jpeg格式
答案: 【png格式;
gif格式

8、单选题:
下列标记中,可以设置有序列表某个列表项序号值的属性是( )。
选项:
A:type
B:start
C:value
D:src
答案: 【value

9、单选题:
关于定义无序列表的基本语法格式,以下描述错误的是( )。
选项:
A:<ul></ul>标记用于定义无序列表
B:<li>不可以定义type属性,只能使用CSS样式属性代替
C:<li></li>标记嵌套在<ul></ul>标记中,用于描述具体的列表项
D:每对<ul></ul>中至少应包含一对<li></li>
答案: 【<li>不可以定义type属性,只能使用CSS样式属性代替

10、多选题:
下列标记中属于文本格式化标记的是( )。
选项:
A:<strong></strong>
B:<i></i>
C:<del></del>
D:<b></b>
答案: 【<strong></strong>;
<i></i>;
<del></del>;
<b></b>

模块二 单元测试

1、单选题:
在以下的 HTML 中,哪个是正确引用外部样式表的方法?( )
选项:
A:<style src="mystyle.css">
B:<link rel="stylesheet" type="text/css" href="mystyle.css">
C:<stylesheet>mystyle.css</stylesheet>
D:<link href="mystyle.css">
答案: 【<link rel="stylesheet" type="text/css" href="mystyle.css">

2、单选题:
在HTML页面中,定义内部样式表的标签是( )
选项:
A:<style>
B:<css>
C:<script>
D:<head>
答案: 【<style>

3、单选题:
下列哪个选项的 CSS 语法是正确的?( )
选项:
A:body {color: black}
B:{body:color=black(body}
C:{body;color:black}
D:body:color=black
答案: 【body {color: black}

4、单选题:
如何在 CSS 文件中插入注释?( )
选项:
A:// this is a comment
B:' this is a comment
C:// this is a comment //
D:/* this is a comment */
答案: 【/* this is a comment */

5、单选题:
哪个 CSS 属性可控制文本的尺寸?( )
选项:
A:text-size
B:font-size
C:text-style
D:font-style
答案: 【font-size

6、单选题:
关于 border-radius 说法正确的是( )。
选项:
A:设置边框的圆角
B:不能设置成圆形
C:设置容器样式
D:只能设置一个值
答案: 【设置边框的圆角

7、单选题:
设置元素右边距的属性是( )
选项:
A:margin
B:indent
C:text-indent
D:margin-right
答案: 【margin-right

8、单选题:
为 <h1 class=“all”> 元素添加背景颜色的css样式是( )
选项:
A:h1 {background-color:#FFFFFF}
B:all.h1 {background:#FFFFFF}
C:.all {background-color:#FFFFFF}
D:h1.all {background-color:#FFFFFF}
答案: 【h1.all {background-color:#FFFFFF}

9、单选题:
下列哪个不属于CSS文本属性?( )
选项:
A:font-size
B:text-transform
C:text-align
D:line-through
答案: 【line-through

10、多选题:
下列关于margin值得描述正确的是( )。
选项:
A:当margin有四个值时,指的是上、下、左、右
B:当margin给一个值时,指的是四个方向

剩余70%内容付费后可查看

发表评论

电子邮件地址不会被公开。 必填项已用*标注