The ________ property in CSS is used to create a linear gradient as the background of an element.
- background-gradient
- background-image
- gradient-background
- linear-background
The correct answer is gradient-background. This property is used to create a linear gradient as the background of an element. It allows for smooth transitions between colors, enhancing the visual appeal of the webpage.
Loading...
Related Quiz
- What does the flex-wrap property control in a flex container?
- When using SVGs in CSS, how can you change the color of the SVG on hover?
- Which CSS property is used to change the text color of an element?
- What is the purpose of grouping multiple CSS selectors that share the same declarations?
- You're working on a navigation menu where each list item should be displayed side by side. How would you achieve this using CSS?