What is the primary purpose of using the @media print CSS rule?
- Apply styles specifically for printing
- Create animations for web pages
- Define a media query for mobile devices
- Set the background color of a webpage
The @media print CSS rule is used to apply styles specifically for printing. This allows developers to customize the appearance of a webpage when it is printed, such as hiding unnecessary elements or adjusting the layout for better printability.
Loading...
Related Quiz
- Which CSS property adjusts the space between characters in text?
- What is the main advantage of using SCSS over plain CSS?
- In the BEM methodology, how is a modifier typically represented in a class name?
- What is the main purpose of media queries in CSS?
- What is the primary challenge in designing a CSS layout that supports both left-to-right (LTR) and right-to-left (RTL) languages?