Account
Login
Categories
HTML
CSS
Python
PHP
MySQL
Linux
Javascript
HTML
CSS
Python
PHP
MySQL
Linux
Javascript
Shobha
The best way to predict the future is to invent it
How does the <form> tag work in HTML?
The
tag is used to create forms on web pages, allowing users to submit input that is then processed by a server. The form contains various input elements like
,
,
, and
that enable users to interact and provide data.Example:
Name:
Submit
action: Specifies the URL or server-side script (such as submit.php) where the form data is sent for processing.
method: Defines how the data is transmitted, either using the GET or POST method
RELATED INTERVIEW QUESTIONS
How does HTML5 improve upon older versions of HTML regarding multimedia content?
What is the use of the alt attribute in the <img> tag?
What is the purpose of the action attribute in HTML forms, and how does it work?
What is the role of the <address> tag in HTML, and when should it be used?
What is the <iframe> tag used for in HTML5?
How do you add a background image in HTML?
What are input types in HTML5?
Explain the difference between <thead>, <tbody>, and <tfoot> in table structure.
How does the browser render HTML content from a server response?
How do you include a JavaScript code in an HTML document?
What is the use of the <source> tag in the <video> and <audio> tags in HTML5?
How do you use HTML5’s <audio> and <video> tags?
What is the difference between <input type=submit> and <input type=button> in HTML?
What are the differences between the <form> and <fieldset> tags in HTML?
What is the async and defer attribute in the <script> tag? How do they impact the way scripts are executed in HTML documents?
X