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 do you add an image map in HTML?
How does the <section> tag differ from the <div> tag semantically in HTML5?
What is the purpose of the disabled attribute in HTML form elements?
How does HTML5 differ from older versions in terms of the <audio> and <video> tags?
How do you create a multi-level dropdown menu in HTML?
What is the difference between the <fieldset> and <div> tags in terms of functionality in forms?
What are the new input types introduced in HTML5?
What is the use of the placeholder attribute in HTML input fields?
How do you implement SVG (Scalable Vector Graphics) in HTML, and what are its benefits over other image formats?
What are the global attributes in HTML? Provide examples.
How do you add a favicon to your website in HTML?
How do you set a link to open in a specific window in HTML?
What are the differences between inline, block, and inline-block elements in HTML?
How do you embed a Google map using HTML5s <iframe> tag?
How does HTML5 improve upon older versions of HTML regarding multimedia content?
X