Food Groupy said:
when I create a simple form with some single-line text <input>
fields, the "default text" that appears in the empty field is ARIAL.
Probably not. You'll see the difference if you try
<input value="abcdefg"><br>
<input value="abcdefg" style="font-family:Arial">
IE 6 uses by default some sans-serif font other than Arial. I haven't
identified what its name is. It's similar to Arial, but if you look at
it, you'll see quite a many small differences, including a bit larger
inherent spacing between letters in Arial.
When I create a multi-line <text area> field, the default text
appears as a "courier" type of monospaced font.
Hardly. It's probably "Courier New", which is quite different from
"Courier" (and much better, partly because Courier is a bitmap font,
which misbehaves badly when the font size is increased).
Not really.
Is there a "fix" for this, or is this an IE6 kind-of-thing...?
For example,
<style type="text/css">
input, textarea, option, button { font-size: 100%; }
input, textarea { font-family: Arial, Helvetica, sans-serif; }
</style>
The first rule there is not dummy. First, it sets text size in form
fields the same as in normal text, opposite to common browser default of
about 90%. Second, it makes the text size there scaleable. Try a page
containing a form without such a rule, and use the browser settings to
set text size to maximum; normal text gets resized (unless you did
something to break that functionality), text in form fields does not.
The second rule sets, of course, the font size in all input and textarea
elements the same, namely Arial if available, Helvetica otherwise, or a
browser-defined sans-serif font if neither of those two fonts is
available (which is pretty rare).