What are the primary input object types? Provide a code example of two different input types.

What will be an ideal response?


The element defines many of the form input object types. You use the type attribute to specify the object type within the element, such as:
size="35" maxlength="35">?

 Input typeDescription
 text Creates a text entry field that lets the user enter a single word or a line of text; this is the
default object type
 password Creates the same type of text entry field created by the value text, but the user's entry is
masked by asterisks
 checkbox Provides on/off toggles that the user selects; check boxes are best used with multiple-answer
questions, and multiple check boxes can contain the same name, which lets you group them
together so users can select multiple values for the same property
 radio Lets a user choose one value from a range of values; when radio buttons are grouped together
with the same name, only one choice can be selected
 submit Sends the form data to the server using the transmission method specified in the

element; every form needs a submit button
 reset Clears the form of any user-entered data and returns the form to its original state
 hidden Adds a control that is not displayed in the browser; the hidden type is useful for sending
additional information with form data that may be needed for processing
 image Adds a graphic button to the form, rather than the default button
 button Creates a button that has no default behavior; the button's function is usually defined by a
script; when the user pushes the button, the script function is triggered
 file Lets the user select a file that is submitted with the form
?
  • id="Smallmouth Bass">Smallmouth Bass
  • ?

    Would you like to be on our mailing list?

    Yes
    No



    Computer Science & Information Technology

    You might also like to view...

    Each separate array variable is one ____ of the array.

    A. element B. aspect C. index D. member

    Computer Science & Information Technology

    The Event Viewer log that logs events related to the setup of applications is the Application log

    Indicate whether the statement is true or false

    Computer Science & Information Technology

    A ____ is the Visual Basic equivalent of a worksheet.

    A. module B. macro C. chart D. code

    Computer Science & Information Technology

    A function that is defined in a class definition is known as which of the following?

    A. constructor B. method C. initializer D. object

    Computer Science & Information Technology