Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?Essentially, I want to be able to show the HTML page in the browser, and outline the content in the dimensions of an A4 size page. For the sake of simplicity, I'm assuming that the HTML page will only contain text (no images etc.) and there will be no `` tags for example.Also, when the HTML page is printed, it would come out as A4-sized paper pages.
Most likely yes it is depending on exactly what you're trying to do.
CSS supports millimeters as a unit (https://www.w3schools.com/cssref/css_units.asp) so you can certainly set the height and width of the page to 210mm by 297mm. Additionally you can create an external CSS file for print only with just the rules you need. See: