css quiz1

CSS Quiz Results
Score: 24 of 25

96% Correct:
Question 1:
What does CSS stand for?

Cascading Style Sheets    Your answer  
Creative Style Sheets
Computer Style Sheets
Colorful Style Sheets
Question 2:
What is the correct HTML for referring to an external style sheet?

<link rel="stylesheet" type="text/css" href="mystyle.css">    Your answer  
<style src="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
Question 3:
Where in an HTML document is the correct place to refer to an external style sheet?

In the <head> section    Your answer  
In the <body> section
At the end of the document
Question 4:
Which HTML tag is used to define an internal style sheet?

<style>    Your answer  
<css>
<script>
Question 5:
Which HTML attribute is used to define inline styles?

style    Your answer  
class
font
styles
Question 6:
Which is the correct CSS syntax?

body {color: black;}    Your answer  
{body:color=black;}
body:color=black;
{body;color:black;}
Question 7:
How do you insert a comment in a CSS file?

/* this is a comment */    Your answer  
' this is a comment
// this is a comment //
// this is a comment
Question 8:
Which property is used to change the background color?

background-color    Your answer  
color
bgcolor
Question 9:
How do you add a background color for all <h1> elements?

h1 {background-color:#FFFFFF;}    Your answer  
h1.all {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
Question 10:
Which CSS property is used to change the text color of an element?

color    Your answer  
fgcolor
text-color
Question 11:
Which CSS property controls the text size?

font-size    Your answer  
text-style
font-style
text-size
Question 12:
What is the correct CSS syntax for making all the <p> elements bold?

p {font-weight:bold;}    Your answer  
<p style="text-size:bold;">
<p style="font-size:bold;">
p {text-size:bold;}
Question 13:
How do you display hyperlinks without an underline?

a {text-decoration:none;}    Your answer  
a {decoration:no-underline;}
a {underline:none;}
a {text-decoration:no-underline;}
Question 14:
How do you make each word in a text start with a capital letter?

text-transform:capitalize    Your answer  
You can't do that with CSS
text-style:capitalize
transform:capitalize
Question 15:
Which property is used to change the font of an element?

font-family    Your answer  
font-weight
font-style
Question 16:
How do you make the text bold?

font-weight:bold;    Your answer  
font:bold;
style:bold;
Question 17:
How do you display a border like this:

The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?

border-width:10px 1px 5px 20px;    Your answer  
border-width:10px 20px 5px 1px;
border-width:10px 5px 20px 1px;
border-width:5px 20px 10px 1px;
Question 18:
Which property is used to change the left margin of an element?

margin-left    Your answer  
indent
padding-left
Question 19:
When using the padding property; are you allowed to use negative values?

No    Your answer  
Yes
Question 20:
How do you make a list that lists its items with squares?

list-type: square;    Your answer  
list: square;
list-style-type: square;    Correct answer  
Question 21:
How do you select an element with id 'demo'?

#demo    Your answer  
*demo
demo
.demo
Question 22:
How do you select elements with class name 'test'?

.test    Your answer  
*test
#test
test
Question 23:
How do you select all p elements inside a div element?

div p    Your answer  
div.p
div + p
Question 24:
How do you group selectors?

Separate each selector with a comma    Your answer  
Separate each selector with a space
Separate each selector with a plus sign
Question 25:
What is the default value of the position property?

static    Your answer  
absolute
relative
fixed
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值