WorksheetsCSS
Total questions: 25
Worksheet time: 5mins
Expand CSS.
(a)
Which of these is the correct syntax for CSS?
selector {property: value;}
{selector: property; value}
property {value; selector}
None of these
Which CSS selector selects and styles a part of an element?
Pseudo-elements selectors
Pseudo-class selectors
Simple selectors
Combinator selectors
How do you write CSS comments?
/*Comment lines*/
//Comment lines//
<!--Comment lines-->
#Comment lines
What is the hexadecimal value for the color red?
(a)
Which of these is the correct method to add a blue background color in CSS?
body {background: blue;}
body {background-color: blue;}
body {background-body: blue;}
body-background {blue};
The (a) property specifies what kind of border to display.
___________ is used to create space around elements, outside of any defined borders.
Margin
Padding
____________ is used to create space around an element's content, inside of any defined borders.
Margin
Padding
The CSS (a) property is used to set the maximum width of an element.
The (a) property adds space between an outline and the edge/border of an element.
Which property is used to remove underlines from links?
text-decoration
link-style
text-underline
link-underline
What is the generic font family of this font?
Serif
Sans-serif
Monospace
Cursive
Fantasy
What does a:active represent?
A normal, unvisited link.
A link the user has visited.
A link when the user mouse-overs it.
A link the moment it is clicked.
The (a) property specifies an image as the list item marker.
Select the block-level element(s) from the options given below.
<div>
<p>
<a>
<img>
An element with __________ is not positioned in any special way; it is always positioned according to the normal flow of the page
position: static;
position: relative;
position: fixed;
position: absolute;
position: sticky;
The CSS (a) property controls what happens to content that is too big to fit into an area.
The CSS ____ property specifies what elements can float beside the cleared element and on which side.
float
clear
What is the symbol for general sibling selector?
(a)
Which property specifies the transparency of an element?
(a)
The ______ selector is used to select elements with an attribute value containing a specified word.
[attribute~="value"]
[attribute="value"]
[attribute]
[attribute|="value"]
Which CSS counter property creates or resets a counter?
(a)
Select all absolute length units.
cm
pc
em
vmin
Which rule in CSS is used to add more importance to a property/value than normal?
(a)
