Mahdi
Mahdi

Reputation: 7

fixed-width font (usually Courier) in html

i'm, new on learning html (for front-end)
i encountered with a subject that includes fixed-width font (usually Courier) in some web pages like w3schools. So after searching alot, i couldn't find a good answer for that. Can anyone explain it with an example?

Upvotes: 0

Views: 1753

Answers (1)

user11844224
user11844224

Reputation:

A "fixed width font" is a style of glyphs (a glyph is the human visible representation of a character as displayed on the computer's screen or as printed on paper) such that every character has the same horizontal length.

Fixed width fonts are needed for "ASCII art" displays such as this:

I want to highlight this word.  So I use "^" characters on
the next line like this: ^^^^

If the width was not fixed, the "^" characters might not be aligned correctly.

Upvotes: 1

Related Questions