Interview Question

What are forms in HTML?

`<form>` should be used for its proper HTML purpose.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<form>` is an element that collects and submits user information. • It can contain labels, inputs, buttons, and validation rules. • Browsers apply the native parsing and behavior defined for this element. • Using its native meaning helps assistive technology understand the content when the element has accessibility semantics.

💡 Simple Example

<form><label>Name <input name="name"></label></form>

⚡ Quick Revision

`<form>` should be used for its proper HTML purpose.