Back to articles
HTML part 3

HTML part 3

via Dev.toNanthini Ammu

Table of Contents Label Button select Option Textarea Label: It is used to tell the user what to enter in the input box. It is best to connect label with input using for and id. When the user click on the label, input gets focused. Example : <form> <label for= "email" > Email: </label> <input type= "email" id= "email" ><br><br> <label for= "password" > Password: </label> <input type= "password" id= "password" > </form> Button: It is used to perform an action when clicked like submitting form and resetting form. Types of button: button submit reset * Example : * <button> Click Me </button> <button type= "button" > Normal </button> <button type= "submit" > Submit </button> <button type= "reset" > Reset </button> select: It is used to create drop down list. It allows users to choose one or more options. Example : <label for= "city" > Choose City: </label> <select id= "city" > <option> Chennai </option> <option> Delhi </option> <option> Mumbai </option> </select> <select name= "city" > <op

Continue reading on Dev.to

Opens in a new tab

Read Full Article
5 views

Related Articles