What is the meaning of HTML <select> tag in english?

( 5 ) 1 Rating
 1 views  .  0 comments  .   0 up votes .    0 down votes . shares 0 Download Solution PDF tuteeHUB earn credit +10 pts

Answer: HTML <SELECT> tag

When writing in HTML, the <select> tag is an inline element used to designate a control that presents a drop-down menu of options. The options in the list are defined by the <option> tag and grouped together using <optgroup>. The following sections contain information about the <select> tag, including an example of it in use, and related attributes and browser compatibility.

Note

The <select> tag belongs to a group of tags called form elements.

Example of <select> code<select>
<optgroup label="Mammals">
<option>Cat</option>
<option>Dog</option>
</optgroup>
<optgroup label="Birds">
<option>Crow</option>
<option>Eagle</option>
</optgroup>
<optgroup label="Dinosaurs">
<option>Raptor</option>
<option>Tyrannosaurus</option>
<option>Brachiosaurus</option>
</optgroup>
</select>Example resultChoose your favorite animal from this list:CatDogCrowEagleRaptorTyrannosaurusBrachiosaurus


If you hover your mouse cursor over the right side of the BOX, a down arrow appears. Click this arrow to choose your favorite animal.

Example with larger box

In addition to having a drop-down box, a larger select box allows more options or all available options to show using the size attribute. Below we added size="10" to the select tag to allow ten items to FIT in the box.

CatDogCrowEagleRaptorTyrannosaurusBrachiosaurusTip

We've also added multiple to the select tag to allow multiple items to be selected in the above box. To select multiple items, hold down the Ctrl on the keyboard and click each item you want to select.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <select> tag, and a description of each.

AttributeDescription
autofocusDesignates that the drop-down list should automatically be FOCUSED upon the page loading.
disabledDisables the drop-down list.
formDesignates the form(s) to which the <select> element belongs.
multipleDesignates that more than one option may be selected from the list.
nameDesignates a name for the drop-down list.
requireDesignates that the USER is required to select a value before the form is submitted.
sizeSpecifies the number of visible options in a drop-down list.
Compatibility
EdgeInternet ExplorerFirefoxSafariOperaChrome
All versionsAll versionsAll versionsAll versionsAll versionsAll versions
Additional form elements
  • <button>
  • <datalist>
  • <fieldset>
  • <input>
  • <keygen>
  • <label>
  • <legend>
  • <optgroup>
  • <option>
  • <output>
  • <textarea>

tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.






Report
Write Your Comments or Explanations to Help Others


Comments(0)



Tuteehub Dictionary Web Story
HTML help in Computer Definitions
Tuteehub Dictionary Web Story
T - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Microsoft Windows Help in Computer Definitions
Tuteehub Dictionary Web Story
N - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
O - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
P - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Q - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
R - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
S - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Y - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
X - Definitions in Computer Definitions


Ever curious about what any word really means? Dictionary has got them all listed out for you to explore. Simply,Choose a subject/topic and get started on a self-paced learning journey in a world of word meanings and translations.

open app imageOPEN APP