Languages
[Edit]
EN

HTML - set default value for select element

0 points
Created by:
Marley-Marks
712

In this article, we would like to show you how to set a default value for select element in HTML.

Quick solution:

 

Practical example

Edit

In this section, we present a practical example of how to set a default value for a select element (select box) using selected attribute.

References

Edit
  1. <option>: The HTML Option element - HTML | MDN

Alternative titles

  1. HTML - set default select box option
  2. HTML - selected select element option
  3. HTML - selected select box option
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join