Input
Using the Input Controls
In this tutorial you will learn how to use the Input Controls
We can then start adding controls.
I like to add Label s for each control to aid in Accessibility. This helps for tabbing and if you click on a label it will select that control.
Username:
<label for="UserName">UserName:</label>
<input type="text" value="Alex" size="30" id="UserName" name="UserName">
Password:
<label for="Password">Password</label>
<input type="password" id="Password" name="Password">
Some other useful controls:
Hidden
Just by changing the TYPE attribute you can hide a value.
<label for="CustomerID">CustomerID</label>
<input type="hidden" id="CustomerID" name="CustomerID">
You may wish to remove the Label as if it's hidden you wouldn't want it showing.
Submit Button
<input type="submit" value="Submit">
Reset Button
<input type="reset" value="Reset">
Input Button
<label for="TestButton">TestButton</label>
<input type="button" id="TestButton" name="TestButton" value="Test Button">
Input Radio
<label for="Male">Male</label>
<input type="radio" name="radio" id="Male" value="Male">
<br />
<label for="Female">Female</label>
<input type="radio" name="radio" id="Female" value="Female">
Course
Want to learn more? Request this via the contact form.
Search
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips
|