Html2Canvas is a JavaScript library that allows you to take a screenshot of the entire web page or a specific section with just a few lines of code.
It returns an HTML5 canvas element when it is initialized on the element that you can use to create a new image file or display a screenshot preview on the screen.
In this tutorial, I show how you can use Html2Canvas library to take a screenshot and save it to the server using PHP.