| |
|
| |
HomeWeb DevelopmentShort ContentsFor Beginners...Introduction Document Text Organisation tools Forms Images Sounds Special Effects - Javascript Search Engines Full ContentsFor Beginners...IntroductionOther HTML sitesPutting pages online Tips For beginners Download this Guide DocumentStructureThe <HEAD> section ...Title ...Setting the Base address ...Queries : ISINDEX ...META tags ...<LINK>s The <BODY> tag ...Document Colours ...Background TextHeadingsFonts Preformatted text Special Characters Character Formatting ...Blink ...Bold ...Italics ...Underline ...Strikethrough ...Superscript ...Subscript Paragraph formatting ...Blockquote ...Line Breaks ...New Paragraph ...Stop Line Breaks ...Word Break ...Centre text Miscellaneous ...Addresses ...Use Bigger/Smaller fonts ...Citations ...Code ...Keyboard input ...Sample ...Teletype ...Variables ...XMP Organisation toolsCommentsHorizontal lines Links ...<LINK>s ...within pages ...Image maps Frames ...Naming and Targeting Tables ...example tag ...Rows ...Cells ...Captions Lists ...Definition lists ...Directory Lists ...Menu Lists ...Ordered Lists ...Unordered Lists Embedding special files FormsImagesSoundsSpecial Effects - JavascriptEvents...onAbort ...onBlur ...onChange ...onClick ...onError ...onFocus ...onLoad ...onMouseOver ...onMouseOut ...onReset ...onScroll ...onSelect ...onSubmit ...onUnload Basic Commands ...Changing the status bar ...Opening a new window ...changing page being viewed Search Engines |
FormsThese allow people to send you feedback about your site. They are bounded by the following tags:<form action="???" method="???"> </form>ACTION is the address to which the contents of the form is sent, and is usually a CGI script or email address. Xoom and Geocities users cannot use custom CGI scripts for security concerns. Members can either use action="mailto:[your email address]", or action="?????" to email the form in a more readable format. The latter is preferable, since visitors may not like having to send their email address with the form.METHOD is one of POST or GET, in Xoom you will only need POST. There is a further attribute, enctype, which specifies the format in which to send the form data. The default is application/x-www-form-urlencoded, but you can usually just ignore this attribute. text/plain will make the output easier to read.
Forms can contain any of the HTML elements, but the following special items determine the data that a form sends. All form items contain "name" and "value" attributes, since form data is submitted as Name: Value pairs... The best thing to do is experiment an see what happens! InputThe code is as follows, where NAME is the name of the value's field, used when the form data is posted. The CHECKED attribute specifies whether of not an object (such as radio or check boxes) is initially selected. < INPUT type="Text" name="???" value="Initial Value"
size="number of characters" maxlength="maximum size of text" > <
input type="CheckBox" name="???" value="Value sent if selected" checked > <
input type="Radio" name="use the one name for a button group"
value="value sent if button selected" checked
> <input type="Password" name="???" value="Initial value" size="???" maxlength="???"
> <
input type="Reset" name="???" value="Button Label"
> <
input type="Submit" name="???" value="Button Label"
>Other Buttons <button type=reset|submit|button name="???" value="Button Label"
>When used with the type=button, the button has little effect unless a javascript function is assigned to it - see the special effects section for more information. Selection boxesThe above was created with the following code:
<select name="Selection Name" size="3" multiple >
The MULTIPLE attribute allows more than one option to be selected. SIZE is the amount of visible items.
<textarea name="???" cols="??" rows="??" wrap="virtual|physical|off" > initial text </textarea>
WRAP specifies whether text is seen and sent as typed (off), wrapped on-screen but sent as typed (virtual), or wrapped on screen and sent as seen.
(C)opyright 2001-2008, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |