The Mudcat Café TM
Thread #12759   Message #4160792
Posted By: MudGuard
31-Dec-22 - 05:14 AM
Thread Name: HTML Practice Thread
Subject: RE: HTML Practice Thread
div is like span, an element with no special meaning - while span is "inline" (like a word), div is block (like a paragraph).

The style="font-family: Courier New, Lucida Console, Monospace; white-space:pre;"> has two CSS declarations.

First, the font family (I gave 2 common windows monospace fonts, plus the "generic" fallback monospace which causes browsers to use their default monospace font).

Second, the white-space:pre; which causes the browser to treat whitespace "as is" - it is the default value of the pre element.