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. * Reverted input name attribute addition * Reverted accidental changes
58 lines
1.2 KiB
HTML
58 lines
1.2 KiB
HTML
<html>
|
|
<body>
|
|
<div
|
|
class="codepen"
|
|
data-theme-id="36294"
|
|
data-prefill
|
|
data-editable="true"
|
|
data-height="100%"
|
|
data-theme-id="1"
|
|
data-default-tab="js,result"
|
|
>
|
|
<pre data-lang="css">
|
|
|
|
body {
|
|
font: 1.2em sans-serif;
|
|
}
|
|
|
|
.tiles > div {
|
|
background: rgb(10, 10, 10);
|
|
color: white;
|
|
flex-basis: 100%;
|
|
padding: 10px 20px 15px;
|
|
margin: 10px 20px 10px 0;
|
|
border: 1px solid white;
|
|
}
|
|
|
|
#contact-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
input[type='submit'] {
|
|
align-self: flex-start;
|
|
margin-top: 10px;
|
|
}
|
|
</pre>
|
|
<pre data-lang="html">
|
|
<div class="tiles">
|
|
<div>
|
|
<h2>Contact Us</h2>
|
|
<div id="contact-form">
|
|
<label for="email">Email</label><input id="email" type="email"/>
|
|
<input class="submit" value="Submit" type="submit" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</pre>
|
|
<pre data-lang="js">
|
|
// Count the number of 'a' characters in the email form.
|
|
// Update button to reflect that number.
|
|
|
|
</pre>
|
|
</div>
|
|
|
|
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
|
|
</body>
|
|
</html>
|