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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *