Created
February 5, 2012 14:10
-
-
Save vasilisvg/1745745 to your computer and use it in GitHub Desktop.
Resultaat oefening 2.2b HTML5 forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Resultaat oefening 2.2b HTML5 forms | |
*/ | |
label { | |
display: block | |
} | |
:invalid { | |
background: #ffdddd; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Een klassiek contactformulier --> | |
<form> | |
<fieldset> | |
<legend>Contactgegevens</legend> | |
<label for="name">Naam</label> | |
<input type="text" id="name" required> | |
<label for="email">Email *</label> | |
<input type="email" id="email" required> | |
<label for="straat">Straatnaam</label> | |
<input type="text" id="straat" placeholder="zonder nummer"> | |
<label for="nummer">Nummer</label> | |
<input type="number" id="nummer" placeholder="alleen het nummer"> | |
<label for="postcode">Postcode</label> | |
<input type="text" pattern="[1-9][0-9]{3}\s?[a-zA-Z]{2} id="postcode"> | |
<label for="land">Land</label> | |
<input type="text" id="land"> | |
<label for="telefoon">Telefoon</label> | |
<input type="tel" id="telefoon"> | |
</fieldset> | |
<fieldset> | |
<legend>Voorkeuren</legend> | |
<label for="kleur">Lievelingskleur</label> | |
<input type="color" id="kleur"> | |
<label for="maand">Leukste maand</label> | |
<input type="month" id="maand"> | |
<label for="cijfer">Hoe goed is dit ongeveer? (1 tm 10)</label> | |
<input type="range" min="1" max="10" id="cijfer"> | |
</fieldset> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment