Abakada CSS Demo: focus Pseudo-Class


This example demonstrates using the :focus pseudo class to set styles for elements that are currently in focus.

To access each form field, the user can either click on the text field, click on the label, use the TAB key, or press ALT + the underlined key.

Label Control

By clicking on a control label, the specified control is given focus.
In addition to using label, the accesskey attribute specifies an acceleration key to give the form focus.
Each acceleration key is underlined in the label for easy identification.


View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.