I found some code on codingforum.com which formats forms with CSS. However, when I tried it, it does not display the labels on Netscape 7.0 (WinXP). It only shows the input fields. Can anyone tell me what is wrong with it?
You're correct, it is optional.
As for the label element it doesn't work in older browsers, Netscape7 is ok, but in Netscape6 label is only partially supported.
A radio or checkbox works , but not a text input with label.
Just in case you (or anyone else) needs the answer to this, I think that this is happening becuase of a bug with the Netscape browser which prevents certain styling from being applied direct to the label element.
Instead, you need to insert an empty <span> and assign the styling to that.
So for example, the form would look like:
<label for="whatever"><span>Whatever</span></label> <input name="whatever" id="whatever" type="checkbox" />
And the CSS would look like: