How do CSS sprites help in improving website performance?
- By adding more images to the website
- By increasing the file size of individual images
- By reducing the number of server requests for images
- By removing all images from the website
CSS sprites combine multiple images into a single image, reducing the number of server requests. This leads to faster loading times as the browser only needs to download one image instead of multiple, especially beneficial for small icons and background images.
Loading...
Related Quiz
- Which CSS property would you use to create space between the border of a box and the content within it?
- To ensure that fonts are loaded from the same origin, you can use the ________ HTTP header.
- How does the use of CSS variables (custom properties) impact the maintainability and performance of a website?
- The ________ utility in Tailwind CSS is used to apply different styles based on the user's screen size.
- What is the primary challenge when conducting cross-browser testing?