2.个人主页——个人简介模块

第1次单元测验

1、单选题:
‎下列哪种方式是用class选择器定义样式的‏
选项:
A: p{color: red}
B: p,h1{color: red}
C: . one{color: red} 
D: #two{color: red}
答案: 【 . one{color: red} 

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

3、单选题:
‌以下哪个 HTML 属性用来定义行内样式?‌
选项:
A: font
B: class
C: style
D: styles
答案: 【 style

4、单选题:
‎在HTML页面中,调用外部样式表的正确格式是‍
选项:
A: <link rel="stylesheet" type="text/css" href="外部样式表地址" />
B: <style rel="stylesheet" type="text/css" link="外部样式表地址" /> 
C: <style rel="stylesheet" type="text/css" href="外部样式表地址" />
D: <link rel="stylesheet" type="text/css" style="外部样式表地址" />
答案: 【 <link rel="stylesheet" type="text/css" href="外部样式表地址" />

5、单选题:
​以下HTML标记符中,没有对应的结束标记的是​
选项:
A: <html>
B: <img>

C: <head>
D: <body>
答案: 【 <img>

6、单选题:
‎HTML5 的正确 doctype 是?‎
选项:
A: <!DOCTYPE html>
B: <!DOCTYPE HTML5>
C: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
D: <!DOCTYPE HTML type="HTML5">
答案: 【 <!DOCTYPE html>

7、单选题:
‌Web 标准的制定者是?‎
选项:
A:  微软(Microsoft)
B: 万维网联盟(W3C)
C: 网景公司(Netscape)
D: 苹果公司
答案: 【 万维网联盟(W3C)

8、单选题:

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

发表评论

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