Element | Beschreibung |
---|---|
form | Formular, welches aus Labels und Eingaben besteht |
label | Beschriftungen |
input | verschiedene Arten von Benutzereingaben; Art über "type" Attribut spezifiziert z. B. text, password, date, file, color, radio, checkbox, number, range |
select + option | Auswahlliste |
textarea | mehrzeiliges Eingabefeld |
button | Benutzerinteraktion durch Anklicken; "type" Attribut für Absenden (submit), oder Zurücksetzen (reset) |
HTML<form>
<div>
<label>Name:</label>
<input type="text" />
<label>Passwort:</label>
<input type="password" />
</div>
<div>
<input type="date" />
<input type="file" />
<input type="color" />
<input type="number" />
<input type="range" />
</div>
<div>
<input type="radio" name="color" value="Rot" /><label>Rot</label>
<input type="radio" name="color" value="Grün" /><label>Grün</label>
<input type="radio" name="color" value="Blau" /><label>Blau</label>
<br />
<input type="checkbox" />
</div>
</form>