HTML Level 1 and 2 Manual

Home | Element Index | Forms | Screens & Colours | GIFs | Layout | Compatibility


Element Index > Forms

<FORM> Element

Category: Forms
Period: HTML 2.0 Level 2
Status: core

Description

Begins an input form that submits values to a server.

Syntax

<FORM ACTION="/cgi-bin/search" METHOD="GET">
...controls...
</FORM>

Attributes

ACTION, METHOD, ENCTYPE.

Usage Guidelines

Common Mistakes

Example Code

<FORM ACTION="/cgi-bin/guestbook" METHOD="POST">
<P>Your name: <INPUT NAME="name">
<P><INPUT TYPE="submit" VALUE="Sign Guestbook">
</FORM>

Authoring Note

Write the document first, then test it in a graphical browser and a text browser. The page should remain understandable if images fail, colours are ignored, or the browser uses its own fonts.


Top | Home | All Elements

HTML Level 1 and 2 Manual.