In a form we can keep the blinking cursor focused in any component at the time of opening of the page. This way the visitor can directly enter the data or make selection without putting extra effort on selecting the form element.
The user always has the option of changing the cursor or focus on different form element based on the requirement.
HTML input textbox and its attributes like name value size maxlength autofocus with examples.
For example let us take the case of a login form where the member has to enter the login id and password. As there are two input fields used for this purpose, generally the user will enter user id first and then move to next field to enter password. Here we can keep our focus to the user id field at the time of page open or load so the member can directly enter ID in the text box. So we have to set our focus to the user id field at the time of page load.
Our form element can be like this
The onLoad command inside the body tag will set the focus to the text field of the form.
You can always see the cursor in the above text field every time this page reloads.