If you have a Google account, you can save this code to your Google Drive.
Google will ask you to confirm Google Drive access.
Save file as:
If you have saved a file to Google Drive, you can open it here:
In this example, we use the :focus selector to add a black border color to the text field when it gets focused (clicked on):
Note that we have added the CSS3 transition property to animate the border color (takes 0.5 seconds to change the color on focus).