Border
A CSS shorthand property that sets a visible line around an element by specifying width, style, and color in one declaration, e.g. border: 2px solid black
What it does: border-style controls the visual pattern of the border line and accepts values such as solid, dashed, dotted, and none. border-width is the individual property for setting border thickness, separate from style and color. CSS has four directional border properties: border-top, border-right, border-bottom, and border-left. border-edge-top does not exist. thick is a keyword value for border-width. Its exact pixel size depends on the browser, but is typically around 5px — it does not mean 100px.
Common mistakes: The shorthand order is wrong. CSS border shorthand requires width first, then style, then color: border: 2px solid red; not solid 2px red. The property name is misspelled. border-styl is missing the letter e at the end — it should be border-style: dashed;.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
borderFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →