Account
Login
Categories
HTML
CSS
Python
PHP
MySQL
Linux
HTML
CSS
Python
PHP
MySQL
Linux
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 the browser handle multiple <style> tags in an HTML document?
What is the readonly attribute in HTML5?
How do you specify the language of a script in HTML?
What is the difference between <ol>, <ul>, and <dl> tags in HTML?
What are the different types of HTML tags?
How can you implement lazy loading for images in HTML, and why is it important for performance optimization?
What are the global attributes in HTML? Provide examples.
How do HTML forms handle data submission using the method and action attributes?
What are the new form elements introduced in HTML5?
What is the <output> tag in HTML5 used for?
Explain the difference between <div> and <section> in HTML5.
How do you use the <link> tag for favicons in HTML5?
What is the hidden attribute in HTML, and how does it affect the visibility of elements?
How do you add an image map in HTML?
How can you add a favicon to an HTML page, and what is its purpose?
X