'input' Example : input « HTML Tag Reference « HTML CSS Reference






'input' Example

    
<html>
<head>
<title>input element example</title>
</head>
<body>
    <form name="form2" method="post" action="">
        <p>This is a form with several input elements.</p>
        <input type="text" name="textfield2" value="This is a text field" size="30">
        <br>
        <input type="checkbox" name="checkbox2" value="checkbox">A checkbox.
        <br>
        <input type="radio" name="radiobutton" value="radiobutton1">
        <input type="radio" name="radiobutton" value="radiobutton2">A set of radio buttons.
        <br>
        <input type="button" name="myButton2" value="Submit">A submit button.
        <br>
        <input type="button" name="myButton2" value="Reset">A reset button.
        <br>
        <br>
        <input type="image" 
               border="0" 
               name="imageField" 
               src="yourImage.jpg" width="300"height="225" alt="An input image">
    </form>
</body>
</html>
    
      
      








Related examples in the same category

1.'input' Syntax and Note