Multiple choice technology web technology

In the following piece of code, what should be the value given to the attribute selected to indicate a preselected value in the drop down menu when the page loads? Select Dog Cat Fish Parrot

  1. true

  2. false

  3. selected

  4. enabled

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In HTML, boolean attributes like selected can be specified by setting their value to the attribute's name (e.g., selected="selected"). Modern HTML5 also permits the minimized form where the value is omitted entirely.