<input type="" name="" value="" />
<script type="text/javascript"> function btnOnClick() { alert('hi from button'); } </script> <input type="button" name="btn" value="Hello" onclick="javascript:btnOnClick()"/>
<input type="checkbox" name="chk" value="" checked> Do you want the newsletter? </input>
<input type="radio" name="rdChoice" value="Mag1"> Magazine 1 </input> <input type="radio" name="rdChoice" value="Mag2"> Magazine 2 </input> <input type="radio" name="rdChoice" value="Mag3" checked> Magazine 3 </input> <input type="radio" name="rdChoice" value="Mag4"> Magazine 4 </input>
maxlength: the maximum length of the text that the tag can accept in characters. size : the size of the textbox in characters.
<input type="text" maxlength="5" size="5" name="box1" value="Hi1!"/> <input type="text" maxlength="5" size="20" name="box2" value="Hi2!"/> <input type="text" maxlength="10" size="15" name="box3" value="Hi3!"/>
<input type="password" maxlength="10" size="15" name="pass1"/>
<input type="hidden" name="hidden1" value="Text not changeable by user" />
<input type="submit" value="Send to Server" />
<form> <input type="text" value="hi there hi there" /> <input type="reset" value="Reset the form" /> </form>
accept: Comma seperated list of content/mime types. This tells the server what type of file to expect and to only show the expected file types in the browse window.
<form> <input type="file" name="file1" /> </form>
<form> <input type="image" src="../images/arrow-up-over.gif" /> </form>