The select trong html w3schools
ExampleCreate a drop-down list with four options: Show Try it Yourself » More "Try it Yourself" examples below. Definition and UsageThe The The The The Tip: Always add the Browser Support
Attributes
Global AttributesThe Event AttributesThe More ExamplesExampleUse
Try it Yourself » Related PagesHTML DOM reference: Select Object CSS Tutorial: Styling Forms Default CSS SettingsNone. ❮ HTML ExampleA drop-down list with a pre-selected option: Try it Yourself » Definition and UsageThe When present, it specifies that an option should be pre-selected when the page loads. The pre-selected option will be displayed first in the drop-down list. Tip: The
Browser Support
Syntax❮ HTML ExampleA drop-down list with four options: Try it Yourself » More "Try it Yourself" examples below. Definition and UsageThe Note: The Tip: If you have a long list of options, you can group related options within the Browser Support
Attributes
Global AttributesThe Event AttributesThe More ExamplesExampleUse of
Try it Yourself » ExampleUse of
Try it Yourself » Related PagesHTML DOM reference: Option Object Default CSS SettingsNone. |