| |
|
| |
HomeWeb DevelopmentShort ContentsFor Beginners...Introduction Changes from 3.2 Document Attributes ...that are available for all BODY objects Text Organisation tools Forms Images Sounds Style Sheets Special Effects - Javascript Search Engines Full ContentsFor Beginners...IntroductionOther HTML sitesPutting pages online Tips For beginners Download this Guide Changes from 3.2DocumentSpecifying LanguageStructure The <HEAD> section ...General attributes ...Title ...Setting the Base address ...Queries : ISINDEX ...META tags ...Character sets ...<LINK>s The <BODY> tag ... General Attributes ...Document Colours ...Background Attributes...that are available for all BODY objectsTextHeadingsFonts Preformatted text Change text direction 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 ...Marking Modifications Miscellaneous ...Abbreviation ...Acronyms ...Addresses ...Use Bigger/Smaller fonts ...Citations ...Code ...Definitions ...Keyboard input ...Sample ...Teletype ...Variables ...XMP Organisation toolsCommentsHorizontal lines DIV and SPAN Links ...<LINK>s ...within pages ...Image maps Frames ...Naming and Targeting ...Inline Frames Tables ...example tag ...Rows ...Cells ...Captions ...Head, Body & Foot Lists ...Definition lists ...Directory Lists ...Menu Lists ...Ordered Lists ...Unordered Lists Embedding special files The Object Element FormsInputs and buttonsSelection menus Element Labels Fieldsets and legends ImagesSoundsStyle Sheetsspecifying versionindividual elements in the HEAD section specifying media types external sheets cascading sheets media-dependant defaults HTTP headers Special 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 users cannot use custom CGI scripts for security concerns. Members can either use action="mailto:[your email address]" to email 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. Labels on Forms< LABEL for="???" accesskey=?> (label contents here) </LABEL>A label is associated with the same form object which has an id attribute matching the label's for attribute. Fieldsets and LegendsIt is possible to group related objects on a form (e.g. those relating to someone's address) by placing<FIELDSET> </FIELDSET> tags around them.You should then use the LEGEND tags to describe what the fieldset is about, as such: <FIELDSET>
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |