Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Forms Basics | Advanced Concepts
Introduction to HTML
course content

Course Content

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.

html

index

css

index

js

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.

html

index

css

index

js

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.
html

index

css

index

js

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.

html

index

css

index

js

index

Everything was clear?

Section 5. Chapter 3
We're sorry to hear that something went wrong. What happened?
some-alt