How is this achieved in CSS?

Some pages, when opened have the caret already in the field so you can start typing. Others don’t and you have to click on the first field with the mouse before typing.

What’s the markup for having the caret already in the field? I thought it was :blur or :focus, but I don’t see them used that way in the docs.

It’s not done in CSS but in HTML autofocus.

4 Likes

Those are pseudo classes for styling inputs in those particular states.
Remember CSS is only visual.

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.