Html-Input
Html – input feature(s)
Form features such as text fields, check boxes, and buttons are HTML input features. The name comes from the <input> tag, which is the deface that recognizes web form parts. The <input> tag depends on a few characteristics to sort and name each form item, offering the web developer with a means to handle each feature individually.
The type characteristic identifies what type of input feature to submit to the screen. Alternatives here include: text, checkbox, radio, button, submit, reset, password, and hidden form features. Each has its own singular usefulness and customizable presentation.
HTML Input Feature Code:
1 2 3 4 5 6 7 |
<formg name="myWebForm" action="mailto:youremail@email.com" method="post"> Check Me: <input type="checkbox" /><br /> Name: <input type="text" /><br /> Yes: <input type="radio" /> No: <input type="radio" /><br /> <input type="submit" value="SUBMIT" /> <input type="reset" value="RESET" /> </form |
HTML Input Features:
Name: Yes: No: |
Html – web forms: value characteristic
The value characteristic plays a different role depending on the type of the input field. For example, the value characteristic explains the text inside of the button when utilized with an HTML button. When utilized with a text field, the value characteristic establishes the field with a default value.
HTML Input Feature Code:
1 2 3 4 5 6 7 |
<formg name="myWebForm" action="mailto:youremail@email.com" method="post"> Check Me: <input type="checkbox" /><br /> Name: <input type="text" value="Tom" /><br /> Yes: <input type="radio" /> No: <input type="radio" /><br /> <input type="submit" value="Send" /> <input type="reset" value="Clear" /> </form> |
HTML Input Features:
Name: Yes: No: |
Html – web forms: name and id characteristics
Determining the name and id characteristics within form features is a good habit. The feature name and/or id will later utilized as the link between your HTML form and any server-side script that you may use later on to treat that data. Perhaps the best way is to utilize both characteristics in your code, as different scripting languages require one distinguishing characteristic over the other.
HTML Input Feature Code:
1 2 3 4 5 6 7 |
<formg name="myWebForm" action="mailto:youremail@email.com" method="post"> Check Me: <input name="" id="" type="checkbox" /><br /> Name: <input name="userName" id="userName" type="text" /><br /> Yes: <input name="radioItem" id="radioItem" type="radio" /> No: <input name="radioItem" id="radioItem" type="radio" /><br /> <input name="submitForm" id="submitForm" type="submit" value="SUBMIT" /> <input name="resetForm" id="resetForm" type="reset" value="RESET" /> </form> |
HTML Input Features:
Name: Yes: No: |