In HTML a form can be made using form tag. It is a container tag. Inside the form tag there are many input tags like email, text, password, phone, select, textarea etc. Form example HTML < body > < form > ••• </ form > </ body > We use action attribute to point to a webpage that will load when the user clicks submit button. HTML < form action = "query.php" > ••• </ form > When use GET the form data will be visible in page address. HTML < form action = "url" method = "get" > </ form > Use POST if the form is updating data or includes like password. HTML < form action = "url" method = "POST" > </ form > Remember: Default value of method attribute is get , hence the form value will be visible in address bar. Input tag The input element creates an input box in the form. There are many types of input boxes. HTML < form ...
Comments
Post a Comment