= reset value = "Clear"> <Input type = submit value = "Login"> </Form> </body> </html> Illustration . : An HTML code to demonstrate Form and Form controls (Login form) The output will be: D:\ \ Login Form User Name: Password: Clear Login File Edit View Favorites Tools Help TamilNadu State Council of Educational Research and Traning, Chennai Note: Data received from the user can send to receiver through mail using “mailto” action. Chapter Pages <html> <head> <title> HTML - Form and Controls </title> </head> <body> <h3 align=center> Forms and Controls </h3> <Form action="mailto:abcd.xyz@com" method=post> <p> Student Name: <Input type=text name=name size= maxlength= ></p> <p> Gender: <input type=radio name=gender value=boy> Boy <input type=radio name=gender value=girl> Girl </p> <p> Subjects: <input type=checkbox name=sub value=Tam> Tamil <input type=checkbox name=sub value=Tel> Telugu <input type=checkbox name=sub value=Eng> English <input type=checkbox name=sub value=Phy> Physics <input type=checkbox name=sub value=Eco> Economics </p> <input type=reset name=reset value="Clear"> <input type=submi t name=submit value="Submit"> </Form> </body> </html> Illustration . : An HTML code to demonstrate Form and Form controls (Text box, checkbox and radio buttons) The output will be: D:\ \ HTML - Form and Co..
Student Name : Gender: Subjects: Tamil Clear Telugu English Submit Physics Economics Boy Girl Forms and Controls File Edit View Favorites Tools Help Chapter Pages . . . <Select> Tag The <select> tag is used to create dropdown list box in HTML.
It provides a list of various options as a dropdown list. This element is more helpful when a number of options are to be displayed in a limited space. The <option> tag is used to specify list items. Attributes of <Select> tag: Name – Provide the name to the control, which is sent to the server.
Size – Determine the style of dropdown list box. Size = dropdown list box Size = List box Multiple – Allows user to select multiple values. Attributes of <Option> tag: Selected – Indicate default selection Value – Value to be submitted to server <html> <head> <title> HTML - Form and Controls </title> </head> <body> <h3 align=center> Forms and