Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example I have the following HTML page


This should be printed in the first page

<!-- Special code to print anything below this line to next page -->

This should be printed in the second page


Is there a special code like that?

share|improve this question
up vote 3 down vote accepted

So far as I know, there is no special code to control displayed "pages" because "next page" has different meaning on an iPhone, on a 10" tablet and on a dual 24" screen PC.

I believe page-break-before="always|auto|" can be used in CSS2 to affect printing of HTML.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.