Worksheets{ CSS } 3 Days Boot Camp
Total questions: 30
Worksheet time: 23mins
Which of the below options is correct to change the background color to blue in CSS?
body {
background-colour: lightblue;
}
body {
background-color: lightblue;
}
body {
background:color: lightblue;
}
None of the above
Change the border size of the body or image
border-style
border-width
border-color
width
To create a dotted border around the page
border-style
border-width
border-color
width
Set the color of the border
border-style
border-width
border-color
width
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
What will this rule set create?
h1 {
text-decoration: underline overline dotted red;
}
red waves under the heading
red dots over and under the heading
red waves over and under the heading
red dots over the heading
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
CSS stands for
Cascading style sheet
Cyber style sheet
Cassandra style sheet
None of the above
What are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
<link type="stylsheet" href="exx.css"> belongs to
External
Internal
Inline
None of the above
Stye tag will come inside body for
External
Inline
Internal
All of the above
Style will come inside head for
External
Inline
Internal
All of the above
When CSS is written inside HTML it will be saved as
css
Jsp
html
php
External css file will be saved as
.css
.html
.php
None of the above
When you use class selector
What should present infront of classname
#
&
@
.
When you use id selector
What should present infront of idname
?
@
#
.
Is CSS
Used in client side scripting
Used in server side scripting
Both server and client side scripting
None of the above
If we want define style for an unique element, then which css selector will we use ?
id
class
tag
name
Which attribute can be added to many HTML elements to identify them as a member of a specific group ?
id
div
class
span
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
