HTML: Optgroup Tag

The …. tag helps to group related choices when we have a long list of options to select from the drop-down list created using the tag.

<select>
	<optgroup>
		<option>……</option>
	</optgroup>

	<optgroup>
		<option>……</option>
	</optgroup>

</select>
AttributeValueDescription
disableddisabledSpecifies that an option-group should be disabled
labeltextSpecifies a label for an option-group
Tagged : / / / / /

HTML: Button tag

We can customize the appearance of button using the <button> tag.

 <button>…..</button>
AttributeValueDescription
autofocusautofocusSpecifies that a button should automatically get focus when the page loads
disableddisabledSpecifies that a button should be disabled
formform_idSpecifies one or more forms the button belongs to
formactionURLSpecifies where to send the form-data when a form is submitted. Only for type=”submit”
formenctypeapplication/x-www-form-urlencoded
multipart/form-data
text/plain
Specifies how form-data should be encoded before sending it to a server. Only for type=”submit”
formmethodget
post
Specifies how to send the form-data (which HTTP method to use). Only for type=”submit”
formnovalidateformnovalidateSpecifies that the form-data should not be validated on submission. Only for type=”submit”
formtarget_blank
_self
_parent
_top
framename
Specifies where to display the response after submitting the form. Only for type=”submit”
namenameSpecifies a name for the button
typebutton reset submitSpecifies the type of button
value textSpecifies an initial value for the button
Tagged : / / / /