This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.

CSS and Form Elements

Style within a <FORM>

This example is included in the HTML 4.0 Recommendation . The CSS rule (as suggested in ciwas), is:

 DIV {color: navy; font-size: 14pt; font-weight: 700; }The HTML is:<FORM action="" method="post"> <DIV> <LABEL for="firstname">First name: </LABEL> <INPUT type="text" id="firstname"><BR> <LABEL for="lastname">Last name: </LABEL> <INPUT type="text" id="lastname"><BR> <LABEL for="email">email:<INPUT type="text" id="email"><BR> <INPUT type="radio" name="sex" value="Male"> Male<BR> <INPUT type="radio" name="sex" value="Female"> Female<BR> <INPUT type="submit" value="Send"> <INPUT type="reset"> </DIV></FORM>---------------------------------------------------------------

This is the result:


This is the result:

Sue Sims