Webmaster Resources Center

Welcome to the Bravenet Resource Center. Use these resources to help make your web pages more advanced and fun to use.

Quick Reference Sheets for Webmasters

Quick Reference sheets are packed full of useful information for all webmasters.

HTML Reference Sheet

Using Forms

An HTML form is a section of a document containing normal content, markup, special elements called controls, and labels on those controls. Users generally "complete" a form by modifying its controls, before submitting the form to an agent for processing.

Here's a simple form that includes labels, radio buttons, and push buttons (reset the form or submit it):

<form action="http://somesite.com/prog/adduser" method="post">
<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: </label>
<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">

Form Controls

A user interacts with forms through named controls. A control's control name is given by its name attribute. The scope of the name attribute for a control within a form element is the form element

Each control has both an initial value and a current value, both of which are character strings. Please consult the definition of each control for information about initial values and possible contraints on values imposed by the control. In general, a control's initial value may be specified with the control element's value attribute. However, the initial value of a textarea element is given by its contents, and the initial value of an object element in a form is determined by the object implementation.

For more detailed information and samples of using a form, look at the HTML Tag List.