Forms and Events
Read: 09 submission
Hello, This is Fatima. You can view my webpage using the following link
You can go back to the home page.
In this blog I will give a summary for the chapters 7 and 14 of the book: “HTML & CSS” and chapter 6 from the book “Javascript and Jquery” :books:
- Chapter 7: Forms ✔️
- Chapter 14: Lists, Tables & Forms ✔️
- Chapter 6: Events ✔️
Note: Keywords are emphasised.
Chapter 7: Forms
Why we need them:
In addition to enabling users to search, forms also allow users to perform other functions online. Forms are used when registering as a member of a website, when shopping online, and when signing up for newsletters or mailing lists.
There are several types of form controls that are used to collect information from visitors to sites.
- Adding Text:
- Text input (single-line)
- Password input
- Text area (multi-line)
- Making Choices:
- Radio buttons
- Checkboxes
- Drop-down boxes
- Submitting Forms:
- Submit buttons
- Image buttons
- Uploading Files:
- File upload
How Forms Work
-
A user fills in a form and then presses a button to submit the information to the server.
-
The name of each form control is sent to the server along with the value the user enters or selects.
-
The server processes the information using a programming language such as PHP, C#, VB.net, or Java. It may also store the information in a database.
-
The server creates a new page to send back to the browser based on the information received.
Form Structure
<form>
Form controls live inside a