Interview Question

What is print CSS?

Print CSS uses paged-media and print rules to create useful printed output.

💡 Concept ✅ Quick Revision 🎨 CSS

Answer

Print CSS adapts a document for paged media such as printers or PDF output. • The print media query can hide controls and adjust colors or spacing. • @page can define page-related settings supported by the user agent. • Printed output should preserve important content and visible link meaning.

💡 Simple Example

@media print { nav, button { display: none; } a::after { content: " (" attr(href) ")"; } }

⚡ Quick Revision

Print CSS uses paged-media and print rules to create useful printed output.