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:
Sam Odum
2019-03-11 16:54:20 +01:00
committed by Micah Godbolt
parent 74b103dcb8
commit 432ae83282
2 changed files with 2 additions and 2 deletions

View File

@@ -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>
```

View File

@@ -39,7 +39,7 @@ input[type='submit'] {
&lt;div&gt;
&lt;h2&gt;Contact Us&lt;/h2&gt;
&lt;div id=&quot;contact-form&quot;&gt;
&lt;label&gt;Email&lt;/label&gt;&lt;input id=&quot;email&quot; type=&quot;email&quot; /&gt;
&lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;&lt;input id=&quot;email&quot; type=&quot;email&quot;/&gt;
&lt;input class=&quot;submit&quot; value=&quot;Submit&quot; type=&quot;submit&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;