fixed-width font (usually Courier) in htm

441 Views Asked by At

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 seraching alot, i couldn't find a good answer for that.Can anyone explain it with an example?

1

There are 1 best solutions below

0
On

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.