< article class = "print-document" >
< h1 > CSS query notes</ h1 >
< nav class = "screen-only" aria-label = "Skip to content" >
< a href = "#print-section-1" > Skip to content</ a >
</ nav >
< p > A reusable document preserves its content from screen to paper. Navigation is useful on screen; text and link destinations should remain available in the printed version.</ p >
< div class = "print-sections" id = "print-section-1" tabindex = "-1" >
< section >
< h2 > Section 1</ h2 >
< p > Review the content in reading order. On screen, sections use columns when space allows. For printing, the document returns to block flow and requests that each section stay together. The browser may split a block that cannot fit on a page; paper size, scale and margins change the result.</ p >
< p > < a href = "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing" > Read the printing guide</ a > < span class = "print-link-url" > (https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing)</ span > </ p >
</ section >
< section >
< h2 > Section 2</ h2 >
< p > Review the content in reading order. On screen, sections use columns when space allows. For printing, the document returns to block flow and requests that each section stay together. The browser may split a block that cannot fit on a page; paper size, scale and margins change the result.</ p >
< p > < a href = "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing" > Read the printing guide</ a > < span class = "print-link-url" > (https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing)</ span > </ p >
</ section >
</ div >
</ article > Copy Copy HTML