WorksheetsBSIT 3A - IT105 CSS Quiz 1
Total questions: 15
Worksheet time: 5mins
Which CSS property is used to change the background color of an element?
color
background-color
background-style
bg
Which CSS color format uses a value like #DCACE8?
HEX
Named color
RGB
HSL
What does background-size: cover; do?
Repeats the background image
Stretches the image horizontally only
Makes the image fill the whole area while keeping proportions
Places the image in the center
In the box model, which part is the space outside the border?
margin
padding
content
outline
Which property makes width include padding and border?
width: auto
display: block
box-size: full
box-sizing: border-box
The CSS property that controls the font size is:
text-size
font-family
font-size
size
Which alignment option spreads text evenly on both sides?
justify
center
left
spread
Which position keeps an element in place even when scrolling?
relative
static
fixed
absolute
What does z-index control?
layer ordering
font size
rotation
spacing
Which unit scales based on the viewport height?
vh
vw
rem
px
Which display value makes an element take full width of its container?
inline
flex
inline-block
block
Which property defines column structure in Grid?
grid-rows
grid-gap
grid-template-columns
grid-flow
What layout method is best for aligning items horizontally or vertically?
inline-block
Float
Grid
Flexbox
A responsive design ensures that a website:
has no images
adapts to different screen sizes
uses only pixels
cannot scroll
CSS Grid is mainly used for:
one-dimension layouts
two-dimension layouts
coloring elements
animations
