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
  1. We don't have to reapply style information throughout the document or to external documents when using Inline Style. → A) False
  2. Which CSS property controls the space between an element's content area and its border? → padding
  3. A style can be applied to just one tag by using a ___________ → id rule
  4. Select a CSS property for collapsing the borders between table cells. → border-collapse
  5. Which of the following are Webkit's CSS Extension Prefixes? → -webkit
  6. Which keyword value for `animation-iteration-count` causes an animation to repeat indefinitely? → infinite
  7. Which value will determine the width of the viewport? → color-index
  8. 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
  9. Which of the following functions is used by the filter property to change the brightness of an element's color? → brightness()
  10. Which of the following best describes browsing without the use of stylesheets? → CSS OFF/Images ON
  11. Identify the CSS property that defines the border's bottom-left corner shape. → border-bottom-left-radius
  12. Direct descendents are selected by which of the following selectors? → E > F
  13. What does `animation-direction: alternate` do? → Plays forward on odd iterations and backward on even iterations
  14. How many ways to define the border-image-width CSS property? → 9
  15. Which property controls the size of text? → font-size
  16. Which of the following is a JavaScript framework extension? → Formalize
  17. 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
  18. On hover, which of the following will provide a minimalist entrance effect? → linear pop-up
  19. Which one should be used to overlay text on a high-contrast image? → screen
  20. When the content exceeds the width of its enclosing element, which of the following properties governs how it should behave? → overflow-x
  21. 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
  22. ___________ has a grammar, but it is not defined with a document type definition like regular (X)HTML. → CSS 2.1
  23. 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
  24. What does `padding: 10px 20px` set for an element? → Top/bottom = 10px, left/right = 20px
  25. Every element at the block level appears on a new line? → normal flow
  26. What value of `animation-fill-mode` keeps the element styled by the last keyframe after the animation ends? → forwards
  27. A 3D grooved outline is defined by which of the following values? → groove
  28. The _____________ property links an element to a background image. → background-image
  29. Which of the following selectors selects all E elements with the attribute attr and a value ending in the provided value? → E[attr$=value]
  30. 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.
Start the Timed CSS Mock Exam →
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