O'Reilly logo

Microsoft® HTML5 Step by Step by Faithe Wempen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Monospace and Preformatted Text

Most of the text in this book is set in a proportional font. This means that individual characters take up varying amounts of space horizontally, depending on the size of the individual character. For example, the letter M takes up more space than the letter I, so a string of Ms occupies more space than a string of Is. As a demonstration, let’s take a look at 10 of each character to see the difference:

MMMMMMMMMM

IIIIIIIIII

Most Web pages that we’re accustomed to viewing use proportional fonts; they are attractive, professional-looking, and easier to read.

In contrast, a monospace font is one whose characters occupy exactly the same amount of horizontal space, regardless of the actual size and shape of the individual ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required