0
0
CSSmarkup~5 mins

Border styles in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What CSS property is used to set the style of a border?
The border-style property sets the style of an element's border, such as solid, dashed, or dotted.
Click to reveal answer
beginner
Name three common border styles in CSS.
Three common border styles are solid (a continuous line), dashed (a line made of dashes), and dotted (a line made of dots).
Click to reveal answer
beginner
How do you remove a border from an element using CSS?
Set border-style: none; or border: none; to remove the border completely.
Click to reveal answer
intermediate
What does the border-style: inset; do?
It creates a border that makes the element look like it is embedded or pressed into the page, giving a 3D effect.
Click to reveal answer
intermediate
Can you set different border styles for each side of an element? How?
Yes. Use border-top-style, border-right-style, border-bottom-style, and border-left-style to set styles individually.
Click to reveal answer
Which CSS value will create a dotted border?
Asolid
Bdotted
Cdouble
Dgroove
How do you remove all borders from an element?
Aborder-style: none;
Bborder-style: hidden;
Cborder-style: solid;
Dborder-style: dashed;
Which property sets the border style for the left side only?
Aborder-left
Bborder-style-left
Cborder-left-style
Dborder-style
What border style gives a 3D pressed look?
Ainset
Bridge
Cdotted
Dsolid
Which border style creates two solid lines with space between?
Adashed
Bgroove
Csolid
Ddouble
Explain how to set different border styles on each side of a box in CSS.
Think about how you can control each side separately.
You got /5 concepts.
    Describe the visual difference between the border styles: solid, dashed, and dotted.
    Imagine drawing lines with a pen, a dashed line, and dots.
    You got /3 concepts.