SELF-Treffen in Mannheim 2025

SELFHTML wird 30 Jahre alt!
Die Mitgliederversammlung findet am 24.05.2025 um 10:00 statt. Alle Mitglieder und Interessierte sind herzlich eingeladen.
Davor und danach gibt es Gelegenheiten zum gemütlichen Beisammensein. → Veranstaltungs-Ankündigung.

Beispiel:HTML-input-date-list.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
<title>Formular mit Datums-Vorschlägen</title>	
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
form {
	width: 25em;
} 
input {
	padding: .5em; 
	background-color: #fffbf0; 
	border: thin solid #e7c157;
	width: 10em;  
}
label { 
	display: inline-block; 
	width: 12em;
	margin-bottom: 1em;
	line-height: 2em;
	text-align: right;
}
label::after { 
	content: ": ";
}
input:invalid { 
	border: thin solid red;
}
button {
	margin-left: 14.8em;
	width: 10em;
	margin-bottom: 1em;
}
</style>
</head>

<body>
<h1>Datums-Vorschläge</h1>
<form>
	<label for="datum">Historisches Datum</label>
	<input type="date" id="datum" name="datum" list="historisch">
	<datalist id="historisch">
		<option label="1. Version von SELFHTML">1995-06-04</option>
		<option label="Eröffnung des SELFHTML-Forums">1998-07-26</option>
		<option label="Gründung des SELFHTML e.&thinsp;V.">2004-05-21</option>
		<option label="Start des SELFHTML-Blogs">2005-11-24</option>
		<option label="Neustart der SELFHTML-Dokumentation als Wiki">2010-03-14</option>
	</datalist>
	<button type="reset">Felder leeren</button>
	<button type="submit">absenden</button>
</form>
</body>