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 are the benefits of using the <summary> tag inside the <details> tag in HTML5?
How can you make a webpage content accessible for users with vision impairments using HTML?
How can the aria-label attribute improve web accessibility in HTML?
What is the autofocus attribute in HTML forms?
Can you explain the relationship between the <iframe> tag and security (e.g., sandboxing)?
What does the async attribute do in HTML5?
How do you handle nested forms in HTML, and what are the possible issues that might arise?
Explain the difference between block-level and inline elements in HTML.
What is the use of the placeholder attribute in HTML input fields?
What is the role of the rel attribute in a <link> tag, and how does it affect linking to stylesheets, icons, etc.?
How do you define custom data attributes in HTML5?
What is the role of the defer attribute in HTML5?
What is the purpose of the <mark> tag, and how does it affect text visibility?
What is the target=_blank attribute used for in HTML links?
What is the significance of the lang attribute in the <html> tag for localization?
X