# How to specify that an option should be pre-selected when the page loads in HTML?

HTMLWeb DevelopmentFront End Technology

Use the selected attribute to specify that the option should be pre-selected when page loads in HTML. You can try to run the following code to implement selected attribute −

## Example

<!DOCTYPE html>
<html>
<title>HTML selected attribute</title>
</html>