Forms

Form elements.

Code

HTML5 Elements

The following elements need only for you to use the HTML5 elements.

				
<input type="text" required placeholder="Username">
<input type="password" required placeholder="Password">
<label>Label</label>
<textarea></textarea>
<input type="checkbox">
<input type="radio" name="radio">
<input type="radio" name="radio">
<input type="radio" name="radio">
<input type="range">
				
			

Class Based

The following elements need to be used as the code shows, in order and with classes.

				
<input type="checkbox" class="toggle" id="toggle">
<label for="toggle"></label>