NEW
Font size
WorksheetsCascading Style Shenanigans: A CSS Quiz for the Witty Web Wizar
Total questions: 15
Worksheet time: 5mins
Which of the following tag is used to embed css in html page?
<css>
<!DOCTYPE html>
<script>
<style>
Which of the following CSS selector is used to specify a rule to bind a particular unique element?
tag
id and tag
class
id
Which CSS property allows you to specify an image to be used instead of the normal border around an element?
border-background
border-bgimage
border-image
none of the above
What is the correct syntax for referring an external CSS?
<link rel="stylesheet" type="text/css" href="style.css">
<style rel="stylesheet" type="text/css" href="style.css">
both of the above
none of the above
Which of the following CSS properties specifies the stack order of elements?
opacity
z-index and overlap
z-index and opacity
z-index
How many layout modes were there before the Flexbox Layout Module was introduced in CSS?
2
6
4
3
What does the "viewport" refer to in the context of responsive web design?
The browser's title bar
The visible area of a webpage in the browser
The device's physical screen
The URL of the website
What is default position of an element ?
fixed
relative
static
sticky
Setting the position to relative makes the element appear on bottom of any other static element in its area.
TRUE
FALSE
The default value for the float property is right
TRUE
FALSE
A ___________ is used to define a special state of an element.
pseudo-tag
pseudo-id
pseudo-element
pseudo-class
For which rule is plus sign (+) used in CSS ?
parent selector
attribute selectors
adjacent-sibling selector
class selectors
Which of the following selector selects all elements of E that have the attribute attr that end with the given value 'val'?
E[attr^=val]
E[attr^$=val]
E[attr=val]
E[attr*=val]
Which CSS property is used to make the text wrap around an image in responsive layout ?
float
flex-wrap
image-warp
text-flow
Which of the following are units of relative length in CSS?
em
rem
vmax
all of the above
