input*
The default type is "text".
type="button"
<script>
function myOnClick()
</script>
<form>
<input type="button" value="" onclick="myOnClick">
</input>
</form>
type="submit"
<input type="submit" value="submit button" onClick="" />
The 'value' is displayed as its label inside the button
This has the pre-defined action of submitting the <form> it belongs to when pressed
type="text"
<input type="text" id="myTextBox"/>
<input type="text" name="fullname"/>
type="label"
<input type="label"/>
type="reset"
<input type="reset" value="reset button"/>
This has the pre-defined action of resetting all the form fields to their initial values
type="checkbox"
<input type="checkbox" name="checkbox1" />
type="radio"
<input type="radio" name="radiobutton1" />
type="password"
<input type="password" id="myTextBox"/>
type="image"
<input type="image" src="images/logo.png" />
type="file"
<input type="file" name="fileupload" accept="image/*" />
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext