Edu
Hub
Dashboard
Courses
My Progress
Leaderboard
AI Tools
AR
AR
Abdullah Rashid
abdullah@example.com
Navigation
🏠
Dashboard
📚
Courses
📈
My Progress
🏆
Leaderboard
✨
AI Tools
👤
Profile
🚪
Log Out
←
CSS Basic
⏱
15:00
Quit
0 / 20 answered
0%
CSS Basic
10 questions · Medium difficulty · 00:20:00 min
🔥 In Progress
Question 1
What does CSS stand for?
Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
Question 2
Which HTML attribute is used to define inline styles?
class
style
css
inline
Question 3
How do you select an element with id="header" in CSS?
.header
#header
header
*header
Question 4
Which CSS property is used to change the background color of an element?
color
bgcolor
background-color
background
Question 5
Which CSS property controls the text size?
text-size
font-style
font-size
text-style
Question 6
What is the correct CSS syntax to make all <p> elements have red text?
p { text-color: red; }
p { color: red; }
p { font-color: red; }
<p style="color: red;">
Question 7
Which property is used to change the text color of an element?
text-color
foreground
color
font-color
Question 8
Which CSS property sets the spacing between lines of text?
line-spacing
line-height
letter-spacing
text-spacing
Question 9
How do you make each word in a paragraph start with a capital letter?
text-transform: capitalize;
text-transform: uppercase;
font-variant: small-caps;
text-style: capitalize;
Question 10
What is the default value of the CSS position property?
relative
fixed
absolute
static
Question 11
Which CSS property controls the space between an element's border and its content?
margin
spacing
border-spacing
padding
Question 12
What does margin: 10px 5px; mean?
top margin 10px, bottom margin 5px
top and bottom margins 10px, left and right margins 5px
top margin 10px, left and right margins 5px, bottom margin auto
all margins 10px and 5px alternately
Question 13
Which CSS property is used to change the font of an element?
font-family
font-style
font-weight
text-font
Question 14
How do you select all elements with class="example"?
.example
#example
*example
class=example
Question 15
Which CSS property is used to set an image as the background?
background-color
background-image
bgimage
image-background
Question 16
Which unit is relative to the font-size of the root element (<html>)?
px
em
rem
vh
Question 17
Which CSS property makes a container a flexbox container?
flex-container
display: flex;
display: block;
flex: true;
Question 18
What does the CSS property "display: none;" do?
The element becomes transparent
The element is hidden but still takes up space
The element is completely removed from the layout and not visible
The element is hidden but clickable
Question 19
Which CSS property is used to add rounded corners to an element?
border-radius
corner-radius
border-curve
edge-radius
Question 20
Which selector has the highest specificity?
Element selector
Class selector
ID selector
Universal selector
✅ Answered:
0
⬜ Unanswered:
8
📊
20%
done
Submit Answers →