Permalink
Browse files

adds labels to properly associate with input fields for accessibility.

  • Loading branch information...
common-nighthawk committed Sep 22, 2016
1 parent 41b423a commit b582c8ba2951a0ed8fbc7ae788cbb8e28e834790
Showing with 7 additions and 7 deletions.
  1. +1 −1 assets/style.css
  2. +6 −6 sign-up-now.html
View
@@ -17,7 +17,7 @@ h2 {
color: #333;
}
span {
label {
display: inline-block;
width: 150px;
}
View
@@ -18,16 +18,16 @@
<h2>Sign Up Now</h2>
<form>
<span>username</span>
<input type="text" placeholder="helloworld" id="un"></input>
<label for="un">username</label>
<input type="text" id="un" placeholder="helloworld"></input>
<br>
<span>password</span>
<input type="password" placeholder="123456" id="ps"></input>
<label for="ps">password</label>
<input type="password" id="ps" placeholder="123456"></input>
<br>
<span>confirm password</span>
<input type="password" placeholder="123456" id="cn"></input>
<label for="cn">confirm password</label>
<input type="password" id="cn" placeholder="123456"></input>
<br>
<input type="submit" value="Submit"></input>

0 comments on commit b582c8b

Please sign in to comment.