Conteúdo do Curso
Introduction to HTML
Introduction to HTML
Forms Basics
Forms are an important part of HTML, allowing users to interact with a web page and input data. There are many different types of form elements that you can use to create a form, including text fields
, radio buttons
, and textarea
elements.
Form elements are just containers for the various form input field elements to be used. They typically have a submit button as well.
index
index
index
One important attribute of the form element is the action
attribute, which specifies the URL of the server-side script that will process the form data.
index
index
index
The method
attribute specifies the HTTP method used to submit the form data. The possible values are get
and post
.
get
method appends the form data to the URL;post
method sends the form data in the HTTP request body.
index
index
index
The autocomplete
attribute specifies whether the browser should automatically fill in form fields based on previously entered data. The possible values are on
and off
.
index
index
index
Obrigado pelo seu feedback!