Created
May 5, 2020 23:15
-
-
Save clayanNEU/3b992afec0cf75a1edb2de445ca2a736 to your computer and use it in GitHub Desktop.
Form fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<main> | |
<h1>Form</h1> | |
<form action="success.html" method="get"> | |
<label> | |
Name: | |
<input name="name" id="name" type="text" value="clayton"></input> | |
</label> | |
<br> | |
<!-- diff way to link clicking words to the box --> | |
<label for="email">Email:</label> | |
<input id="email" name ="email" type="email" required placeholder="hello@gmail.com"></input> | |
<br> | |
<label for="password">Password</label> | |
<input id="password" name="password" type="password"> | |
<br> | |
<label for="search">Search</label> | |
<input id="search" name="name" type="search" placeholder="🔍"> | |
<br> | |
<label for="phone">Phone Number</label> | |
<input id="phone" name="phone" type="tel"> | |
<br> | |
<label for="textarea">Text Area</label> | |
<textarea id="textarea" name="textarea" | |
cols "30" rows "15"></textarea> | |
<br> | |
<label for="date">Date</label> | |
<input id="date" name="date" type="date"> | |
<br> | |
<label for="color">Color</label> | |
<input id="color" name="color" type="color"> | |
<br> | |
<label for="file">File</label> | |
<input id="file" name="file" type="file" accept="image/*" multiple> | |
<br> | |
<label for="checkbox">Checkbox</label> | |
<input id="checkbox" name="simplecheckbox" type="checkbox" value="The checkbox is checked" checked> | |
<br> | |
<fieldset> | |
<legend>Radio buttons in a fieldset</legend> | |
<label for="thisradio">This</label> | |
<input id="thisradio" name="radiobutton" type="radio" value="This" checked> | |
<label for="orradio">Or</label> | |
<input id="orradio" name="radiobutton" type="radio" value="Or"> | |
</fieldset> | |
<br> | |
<button type="submit">Sign up</button> | |
</form> | |
</main> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment