html select auto select first option code example Example: html select option selected true <option selected='selected' />