![]() ![]() Mouse users can hold the Ctrl, Command, or Shift (depending on your operating system) and then click the options to select or deselect them. ![]() ![]() On a personal computer, there are a number of ways to select multiple options in a tag with a multiple attribute. The tag also supports the global and event attributes in HTML. size: The size attribute specifies the number of options in a drop-down list.required: The required attribute specifies that the user needs to select an option before submitting the form.If we omit the name attribute, no data from the drop-down list will be submitted. It is used to refer to the form data after submission or to refer to the element in Javascript. name: The name attribute is used to specify a name to the drop-down list.multiple: The multiple attribute specifies that more than one option can be selected in a drop-down list.form: The form attribute specifies which form the drop-down list belongs to.disabled: The disabled attribute specifies that the drop-down list should be disabled which makes it unclickable and unusable.autofocus: The autofocus attribute specifies that the drop-down list should get focused automatically when the page loads.The attributes of the tag are listed below: A dropdown in HTML is created by nesting the tags inside the tag. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |