HTML/CSS/Form Tags/input

Материал из Web эксперт
Перейти к: навигация, поиск

"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">
        <br>
        <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>
        <input type="image" 
               border="0" 
               name="imageField" 
               src="http://www.wbex.ru/style/logo.png" width="400"height="225" alt="An input image">
    </form>
</body>
</html>