HTML Content Models

HTML submittable content

Build a form with the HTML form generator

Controls eligible for the form submission entry-list algorithm: button, input, select, textarea and form-associated custom elements. Eligibility is not guaranteed inclusion; disabled controls, unnamed fields, unchecked checkboxes and non-submitter buttons are generally omitted. Categories describe authoring constraints and may overlap; they do not determine CSS display or by themselves guarantee accessibility.

Formal Syntax & Structure

html syntaxhtml
<input name="city" value="Baku">

Working Example

Example Snippethtml
<form id="f">  <input name="city" value="Baku">  <input name="ignored" disabled value="X"></form><output id="result"></output><script>  document.getElementById("result").textContent=JSON.stringify([...new FormData(document.getElementById("f"))]);</script>
HTML Reference