Sree Sankar

FORM and Tags

Tag Description Examples
<form> Defines an HTML form for user input Form selement should be inside of this tag
<input> Defines an input control
<textarea> Defines a multiline input control (text area)
<button> Defines a clickable button
<select> Defines a drop-down list
<optgroup> Defines a group of related options in a drop-down list
<option> Defines an option in a drop-down list
<label> Defines a label for an input element
<fieldset> Groups related elements in a form
Personalia:



<legend> Defines a caption for a fieldset element Personalia:

Most important tag is <input>

why?

very simple answer is, the input tag will be the one of the main tag that collects information or data from the user, without input tag,
how we do?

no idea, maybe we have to contact some astrolgers for that! whatever..

do you remember about attribute we talked first?

ok! input have some attributes also

one of the attribute is "type"


type example

type is button

type is checkbox

type is color

type is date

type is datetime-local

type is email

type is file

type is hidden

type is image
we have to use "src" attribute for selecting image

type is month

type is number

type is password

type is radio

type is range

type is reset

type is search

type is submit

type is tel

type is text

type is time

type is url

type is week

Some other important attributes