mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Associate label with input. Include name in input. (#92)
* Associate label with input. Include name in input. * Reverted input name attribute addition * Reverted accidental changes
This commit is contained in:
@@ -6,7 +6,7 @@ In this demo we are going to cover a few core basics of the language that will h
|
||||
|
||||
```html
|
||||
<div id="contact-form">
|
||||
<label>Email</label><input id="email" type="email" />
|
||||
<label for="email">Email</label><input id="email" type="email"/>
|
||||
<input class="submit" value="Submit" type="submit" />
|
||||
</div>
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ input[type='submit'] {
|
||||
<div>
|
||||
<h2>Contact Us</h2>
|
||||
<div id="contact-form">
|
||||
<label>Email</label><input id="email" type="email" />
|
||||
<label for="email">Email</label><input id="email" type="email"/>
|
||||
<input class="submit" value="Submit" type="submit" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user