Displayed and Printed HTML Documents

This chapter provides tutorial notes and example codes on displayed pages and printed pages of HTML documents. Topics include differences of displayed and printed versions of HTML documents; default font family and size; image display size and screen resolution; horizontal scaling and clipping on printed paper; vertical page breaks; text block size and overflow; pagination control.

Differences between Displayed and Printed HTML Documents

Default Font Family and Font Size

Display Size of Image

Printed Width of HTML Document

Printed Height of HTML Document

Text Paragraph Block Size and Overflow

Pagination Control of HTML Documents

Takeaways:

Table of Contents

 About This Book

 Introduction of HTML

 Introduction of HTML5 Features

 HTML Document Structure and Content

 HTML Document and Elements Syntax

Displayed and Printed HTML Documents

 Responsive Design of Web Pages

 References

 Full Version in PDF/EPUB