.NET W3 (IMPORTANT

Cards (9)

  • WHAT IS FORM
    Form allows to gather feedback from your readers or visitors and work on the data provide better service
    • The areas on the form are called field, text or text boxes
    • Also contains command buttons such as Send or Reset buttons.
    Form has two attributes the action and method
    • The Container tag "<form> </form>" is used to create a form in html
  • CREATING A FORM
    •A form contains input elements
    • Text Fields• Check Boxes• Radio Buttons• Submit Buttons• Dropdown Menus• Text Areas• Submit Buttons• Reset or Clear Buttons
  • CREATING A TEXTBOX
    Textboxes are single-line text input boxes.
    Textboxes are used for username input and other single-line text such as name, email address, etc., and can be made by keying in the text as the value of the type attribute of <input>Example:<input type="text"
  • CREATING A LARGER TEXT AREA
    • Input field that can span several rows and columns to allow the readers to enter their feedback, request, instructions, opinions, or any communication
    • Text areas are made via the container tag <textarea> </textarea>. The content of this tag will be displayed in the text area by defaultExample:<textarea name="textarea1"> This is a text area. </textarea>
  • CREATING RADIO BUTTONS
    Radio buttons provide the users a variety of choices where only one can be selected.
    Radio buttons can be made by keying in radio as the value of the type attribute of <input>.Example:<input type="radio" name="gender">
  • CREATING CHECK BOXES
    Check boxes offer users a variety of choices where none, only one or many may be selected.
    Check boxes can be made by keying in checkbox as the value of type attribute of <input>Example: <input type="checkbox" name="checkboxCS">
    • The check attribute is applicable for check boxes to indicate default selected options
  • CREATING DROP-DOWN MENUS
    Drop-down list or drop-down menus offer users a variety of choices where only one can be selected
    Drop-down menus are made via the container tag<select> </select>
  • ADDING A SUBMIT BUTTON
    Submit button is usually placed at the end of forms and when clicked, submits the information input.
    • It can be made by keying in submit as the value of the type attribute of <input>.Example:<input type="submit">
  • INPUT ELEMENTS
    • Input Elements of form defined by the empty tag
    • <input> is used for making textboxes, password boxes, check boxes, radio buttons, submit buttons, and reset buttons depending on the value of type attribute which can be text, password, checkbox, radio, submit and reset respectively.