I am reading a w3c specification and trying to understand the difference between the canvas and the viewport.
They say:
The canvas is the space where the formatting structure is rendered.
And at the same time they say:
Viewport is a window or other viewing area on the screen
These two definitions don't clarify what is the canvas and what is the viewport. Can anyone give a clear or explanatory definition of those?
The viewport is the visible box between the inner borders of your browser;
The canvas is the box containing the whole document. A part of the canvas may be invisible if it does not fit in the viewport.
In other words:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With