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
What is the <ruby> tag in HTML5?
How do you define custom data attributes in HTML, and how can they be used in JavaScript?
What are the advantages of using <section> over <div> for structuring an HTML document?
What is the hidden attribute in HTML, and how does it affect the visibility of elements?
What are semantic HTML tags? Can you give some examples?
What is the frameborder attribute in the <iframe> tag, and what is its purpose?
How does the <source> element work in HTML5?
What are the new input types introduced in HTML5?
How do you specify the character encoding in HTML?
How do you embed a Google map using HTML5s <iframe> tag?
What is the purpose of the
tag in HTML?
What is the role of the lang attribute in the <html> tag and its effect on localization?
How do you add a background image in HTML?
What are semantic HTML tags? Can you give some examples?
How does the <input> tag work in HTML? Explain different types of inputs.
X