What is <Select> tag and How to use? :
<select> tag is used to create drop-down list or scrolling list. This allows user to select option from drop-down or scrolling list. This is also a container tag.
Following are attributes of <select> tag:
1) Name – It assigns name or identity to the option used has been selected.
2) Multiple - this allows the user to select more than one option or value from given drop-down list.
3) Size – This attribute is used to specifying number of visible option or value
Each options in drop-down or scrolling list is created using option tag which is enclosed within select tag.
The attributes of <option> tag are :
1) selected : it define auto-selected option.
2) value : It assigns value to the option displayed in the drop-down or scrolling list.
Hidden fields: Hidden fields stores a value which sent to the server but doesn’t displayed on web browser or to a user.
Hidden is the value of attribute type of input tag.
What is a Label tag in HTML? : this defines Label for input element. (If user clicks on input name then the textbox is highlighted ). Label tag is a container tag.
For is an attribute of label tag. For attribute specifies id of input element. The for attribute must equal to id attribute of a input tag.
Comments
Post a Comment