webformularer
Webformularer, or web forms, are structured collections of form controls embedded in web pages that enable users to submit information to a web server or an API. They are used for contact requests, registrations, orders, surveys, and many other interactive tasks on the internet. A typical webformularer consists of a form element with a name attribute, one or more input controls (such as text, email, password, number, date), select menus, textareas, checkboxes, and radio buttons, together with labels and a submit button. The organization of fields, the type of data expected, and any validation constraints are declared through attributes on the controls and the form element.
Submission of a webformularer sends the collected data to a server endpoint specified by the form's action
Accessibility and usability are important: every input should be associated with a readable label, focus order
Security and privacy considerations include using HTTPS, protecting against CSRF with tokens, sanitizing and validating input