w3resource
HTML exercises

CSS Properties: How to insert a page break after each footer element

Go to Exercise page

Solution:

HTML Code :

<!DOCTYPE html>
  <html>
  <head>
  <title>How to insert a page break after each footer element</title>
  <style type="text/css">
.footer {
page-break-after: always;
}


  </style>
  </head>
  <body>
<p>w3resource Tutorial</p>
<div class="footer">CSS, stands for Cascading Style Sheet is a computer language to describe presentation (for example width, height, color, background color, alignment etc.) of HTML and XML (and XML based languages like XHTML, SVG) web documents. In all the examples of our tutorials, we have used HTML for implementing CSS.</div>
<p>This is after footer</p> 
</body>
  </html>

Live Demo :

See the Pen page-break-after-answer by w3resource (@w3resource) on CodePen.


See the solution in the browser

Supported browser

Firefox logo Chrome logo Opera logo Safari logo Internet Explorer logo
YesYesYesYesYes

Go to Exercise page

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming