Nice work! If you want to refine this a bit you could remove the divs and wrap your inputs in the label.
div
input
label
<div class="email"> <label for="email">E-mail: <span>*</span></label><br> <input type="email" name="email" id="email" placeholder="E-mail" required> </div>
Becomes:
<label class="email"> E-mail: <span>*</span> <input type="email" name="email" id="email" placeholder="E-mail" required> </label>
Notice if you wrap you input in a label you don't need the for="". What you did is correct just thought I'd share a little knowledge.
for=""
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice work! If you want to refine this a bit you could remove the
div
s and wrap yourinput
s in thelabel
.Becomes:
Notice if you wrap you input in a label you don't need the
for=""
. What you did is correct just thought I'd share a little knowledge.