Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What does the CSS property border-radius do?
It rounds the corners of an element's border, making them curved instead of sharp.
Click to reveal answer
beginner
How do you make all four corners of a box have the same rounded curve?
Use border-radius with one value, like border-radius: 10px;.
Click to reveal answer
intermediate
How can you round only the top-left corner of a box?
Use border-top-left-radius property, for example: border-top-left-radius: 15px;.
Click to reveal answer
beginner
What units can you use with border-radius?
You can use length units like px, em, rem, or percentages like 50%.
Click to reveal answer
beginner
What visual effect does border-radius: 50%; create on a square element?
It creates a circle by rounding the corners fully.
Click to reveal answer
Which CSS property rounds the corners of an element?
Aborder-radius
Bborder-style
Cborder-width
Dborder-color
✗ Incorrect
border-radius is the property that controls how rounded the corners of an element are.
How do you round only the bottom-right corner of a box?
Aborder-radius-bottom
Bborder-bottom-right-radius
Cborder-radius-bottom-right
Dborder-bottom-radius
✗ Incorrect
The correct property is border-bottom-right-radius to target that corner specifically.
What happens if you set border-radius: 50% on a square element?
AIt becomes a square with sharp corners
BIt becomes a rectangle
CIt becomes a circle
DIt disappears
✗ Incorrect
Setting border-radius: 50% on a square rounds it fully into a circle shape.
Which unit is NOT valid for border-radius?
Apx
Bem
Crem
Ddeg
✗ Incorrect
deg is used for angles, not for border-radius. Length units and percentages are valid.
How do you apply different rounding to each corner?
AUse four values in <code>border-radius</code>
BUse only one value in <code>border-radius</code>
CUse <code>border-style</code>
DUse <code>border-width</code>
✗ Incorrect
You can specify four values in border-radius to set each corner's rounding separately.
Explain how to use the border-radius property to create a circle from a square element.
Think about how percentages affect corner rounding.
You got /4 concepts.
Describe how to round only the top-right and bottom-left corners of a box with CSS.
Use specific corner properties.
You got /4 concepts.
Practice
(1/5)
1. What does the CSS property border-radius do to an element?
easy
A. It makes the corners of the element rounded instead of sharp.
B. It changes the border color of the element.
C. It adds a shadow around the element.
D. It increases the border thickness.
Solution
Step 1: Understand the property purpose
The border-radius property controls the roundness of the corners of an element.
Step 2: Compare options with property effect
Only "It makes the corners of the element rounded instead of sharp." describes making corners rounded, which matches border-radius.
Final Answer:
It makes the corners of the element rounded instead of sharp. -> Option A
Quick Check:
border-radius = rounded corners [OK]
Hint: Remember: radius means roundness, so border-radius rounds corners [OK]
Common Mistakes:
Confusing border-radius with border color or thickness
Thinking it adds shadows
Assuming it changes element size
2. Which of the following is the correct CSS syntax to make all corners of a box have a 10px rounded radius?
easy
A. border-radius: 10;
B. border-radius: 10px, 10px, 10px, 10px;
C. border-radius: 10px 10px 10px 10px 10px;
D. border-radius: 10px;
Solution
Step 1: Recall correct CSS syntax for border-radius
The property accepts one to four length values without commas. For all corners equal, one value is enough.
Step 2: Check each option's syntax
border-radius: 10px; uses one value with unit and no commas, which is correct. border-radius: 10; lacks units, C has too many values, D uses commas which are invalid.
Final Answer:
border-radius: 10px; -> Option D
Quick Check:
One value with unit, no commas = correct syntax [OK]
Hint: Use one value with unit and no commas for all corners [OK]
Common Mistakes:
Omitting units like px
Adding commas between values
Using too many values
3. What will be the visual result of this CSS on a square div?