CSS Cheat Sheet 2026
The 30 highest-yield CSS facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
70 questions
70 min time limit
75.00% to pass
- We don't have to reapply style information throughout the document or to external documents when using Inline Style. → A) False
- Which CSS property controls the space between an element's content area and its border? → padding
- A style can be applied to just one tag by using a ___________ → id rule
- Select a CSS property for collapsing the borders between table cells. → border-collapse
- Which of the following are Webkit's CSS Extension Prefixes? → -webkit
- Which keyword value for `animation-iteration-count` causes an animation to repeat indefinitely? → infinite
- Which value will determine the width of the viewport? → color-index
- Which of the following is the CSS3 HSL value with a fourth value to determine the color's alpha channel value to define the element's opacity? → HSLa Color
- Which of the following functions is used by the filter property to change the brightness of an element's color? → brightness()
- Which of the following best describes browsing without the use of stylesheets? → CSS OFF/Images ON
- Identify the CSS property that defines the border's bottom-left corner shape. → border-bottom-left-radius
- Direct descendents are selected by which of the following selectors? → E > F
- What does `animation-direction: alternate` do? → Plays forward on odd iterations and backward on even iterations
- How many ways to define the border-image-width CSS property? → 9
- Which property controls the size of text? → font-size
- Which of the following is a JavaScript framework extension? → Formalize
- What does the CSS `will-change` property do in the context of animations? → Hints to the browser which properties will be animated so it can optimize rendering
- On hover, which of the following will provide a minimalist entrance effect? → linear pop-up
- Which one should be used to overlay text on a high-contrast image? → screen
- When the content exceeds the width of its enclosing element, which of the following properties governs how it should behave? → overflow-x
- Can a CSS custom property be overridden for a specific element by redeclaring it in that element's selector? → Yes, the new declaration scopes the variable to that element and its descendants
- ___________ has a grammar, but it is not defined with a document type definition like regular (X)HTML. → CSS 2.1
- In a single declaration, which of the following CSS properties defines the distinct properties of all four sides of an element's border? → border-width
- What does `padding: 10px 20px` set for an element? → Top/bottom = 10px, left/right = 20px
- Every element at the block level appears on a new line? → normal flow
- What value of `animation-fill-mode` keeps the element styled by the last keyframe after the animation ends? → forwards
- A 3D grooved outline is defined by which of the following values? → groove
- The _____________ property links an element to a background image. → background-image
- Which of the following selectors selects all E elements with the attribute attr and a value ending in the provided value? → E[attr$=value]
- Which of the following determines the distance between adjacent cell borders? → border-spacing
Turn these facts into recall:
What Practice Test Geeks adds beyond an AI chat for CSS
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length CSS mock exam — 70 questions in 70 minutes with a 75% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed CSS question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- CSS flashcards built from the same question bank.
- Free CSS practice tests with the correct answer shown after each question.
Was this helpful?
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy