Introduction To Web Technology HTML Day3
Introduction To Web Technology HTML Day3
*Forms
* action Backend script ready to process your passed data.
* method The most frequently used are GET and POST methods.
* target where the result of the script will be displayed. It takes
values like _blank, _self, _parent etc.
* enctype You can use the enctype attribute to specify how the
browser encodes the data before it sends it to the server.
Possible values are: application/x-www-form-urlencoded - This
is the standard method most forms use in simple scenarios.
mutlipart/form-data - This is used when you want to upload
binary data in the form of files like image, word file etc.
*Form Attributes
* Text input (single-line)
* Password input
*Form Controls
* Radio buttons
* Checkboxes
* Drop-down boxes
*Form Controls
* Submit buttons
* Image buttons
* File upload
*Form Controls
* <form>
* Action
* Method
* id
*Form Structure
* Text * date
* Password * email
* Radio * url
* Checkbox * search
* File
* Image
* Submit
* Hidden
*Input Type
* datetime-local
* Datetime
* Date
* Month
* week
* Time
* Number (min – max - step)
* Range (min – max - step)
* Email
* url
*Text input
* readonly the user cannot modify the input
value
* Disabled the input value is never sent with the
rest of the form data
* Placeholder text that appears inside the text
input box that describes the purpose of the box
briefly
* Autofocus Specifies that when the page loads
the <input> element automatically gets focus.
*Choices Input
* <select>
* Name
* <option>
* Value
* Selected
*Select Box
* The HTML <optgroup> tag is used for grouping
related options within your select list. This
makes it easier for users to comprehend their
choices when looking at a large list.
*Button Controls
*submit This creates a button that automatically
submits a form.
*reset This creates a button that automatically
resets form controls to their initial values.
*button This creates a button that is used to
trigger a client-side script when the user clicks
that button.
*image This creates a clickable button but we can
use an image as background of the button.
*Button Type
* Hidden form controls are used to hide data
inside the page which later on can be pushed
to the server