HTML 4 Kids: Lesson Week 9
FORMS
Use the following tags to send a data name and data value to you in an email.
-
Link buttons
- < form method="link" action='http://www.yahoo.com">
- < input type ="submit" value="yahoo!">
- < /form>
Text
- < form method="post" action="mailto:your email address
">
- < type=text name="textname">
- < /form>
Text box
- < form method="post" action="mailto:your email address
">
- < textarea name="comment" rows="6" cols="40">
- < /textarea>< /form>
Option buttons
- < form method="post" action="">
- < input type="radio" name="drink" value="Coke">Coke
- < input type="radio" name="drink" value="7up">7up
- < input type="radio" name="drink" value="Dr Pepper">Dr Pepper
- < /form>
Checkbox
- < form method="post" action="">
- < input type="checkbox" name="toppings" value="Catsup">Catsup
- < input type="checkbox" name="toppings" value="Mustard">Mustard
- < input type="checkbox" name="toppings" value="Pickle">Pickle
- < /form>
Drop-Down List Box
- < form method="post" action="">
- < select name="icecream">
- < option selected> Chocolate</option >
- < option> Vanilla</option >
- < option> Strawberry</option >
- < /form>
Send and Reset Buttons
- < form method="post" action="">
- < input type="submit" value="send">
- < input type="reset" value="reset">
- < /form>
Return