click below
click below
Normal Size Small Size show me how
Web Dev FA2
| Question | Answer |
|---|---|
| Animating width and height is recommended for better CSS performance. | False |
| The CSS selector used to exclude elements from a selection. | :not() |
| CSS animations are: | Easy to write and performant |
| CSS Grid can create responsive layouts without media queries by using: | minmax() and auto-fit |
| Flexbox is perfect for: | Navigation bars and card layouts |
| The CSS feature that allows you to animate changes over time. | animations |
| Flexbox automatically adjusts item sizes based on: | Available space |
| You must always choose between using Flexbox or Grid; you cannot combine them. | False |
| The CSS selector used to target specific children of an element. | :nth-child() |
| Container queries allow styling based on the size of an element’s container rather than the viewport. | True |
| Transitions are used for: | Simple state changes like hover or focus |
| The :nth-child() selector is used to: | Target a specific child or pattern of children |
| Flexbox automatically adjusts item sizes based on available space. | True |
| CSS animations are generally less performant than JavaScript animations. | False |
| Flexbox is perfect for: | Navigation bars and card layouts |
| The clamp() function is useful for creating fluid typography in responsive design. | True |
| The CSS property used to create a flex container. | display: flex |
| Animating width and height is recommended for better CSS performance. | False |
| CSS custom properties are also called: | CSS variables |
| Pseudo-elements like ::before and ::after can be used for decorative content. | True |
| CSS Grid can create responsive layouts without media queries by using: | minmax() and auto-fit |
| CSS animations are: | Easy to write and performant |
| Flexbox is best suited for complex two-dimensional layouts. | False |
| The layout system that allows defining both rows and columns for precise control. | CSS Grid |
| The CSS property that allows flex items to wrap onto new lines. | flex-wrap |
| CSS custom properties can be changed dynamically at runtime using JavaScript. | True |
| CSS custom properties are also known as CSS variables. | True |
| CSS custom properties can be changed dynamically using: | JavaScript |
| Transitions are used for: | Simple state changes like hover or focus |
| CSS Grid is mainly used for: | Two-dimensional layouts |
| CSS preprocessors like Sass provide features such as nesting and mixins. | True |
| You must always choose between using Flexbox or Grid; you cannot combine them. | False |
| The pseudo-element used to insert content after an element. | ::after |
| The CSS selector that allows styling a parent element based on its children. | :has() |
| The one-dimensional layout system used to arrange items horizontally or vertically. | Flexbox |
| Flexbox automatically adjusts item sizes based on: | Available space |
| The gap property in Flexbox replaces the need for margin hacks between items. | True |
| Which property allows Flexbox items to wrap onto new lines? | flex-wrap |
| The CSS property that defines spacing between flex or grid items without using margins. | gap |