This document completes the description of remaining BODY tags:
This tag surrounds all of the form objects. It may not work properly within nested tables. Also, Newt's Cape attempts to associate labels for form objects: previous text for INPUT TEXT, PASSWORD, SELECT; following text for RADIO, CHECKBOX; you may need to experiment (and look at examples) for best results. To prevent label association, include an extra <P>.
Some interesting examples to try:
Location: inside BODY
Attributes:
defaults to BASE URL of document. specifies the action URI for the form. Starting with Newt's Cape 1.4, the same ACTION can be used in multiple forms (earlier, each had to be unique) and it keeps the data separate:
default (application/x-www-form-urlencoded) is used; value currently ignored
Location: inside FORM
specifies the method of accessing the action
values: GET, POST (default)
An Input field. Attributes:
Default: TEXT
a single-line text entry field (though a long label may cause a multi-line input object). The first TEXT, PASSWORD or TEXTAREA field on a book page displays an insertion caret.
Required attributes: NAME
Optional attributes: VALUE, MAXLENGTH (supported); SIZE (unsupported). In the "single digit" example below with MAXLENGTH=1, only 1 character can be entered before system beeps.
Example:
<P>Flavor:<INPUT TYPE=TEXT NAME="FLAVOR0" VALUE="CHOCOLATE">
Result:
This document (in all its formats) is © 1995-2007. Steve Weyer, Greg Simon. All Rights Reserved Worldwide
Version 2.1. Last updated: Dec 2000