\n Chris Coyier <\/a>\n <\/div>\n\n<\/article>\n <\/div>\n \n\n\nBrowser Support<\/h3>\n\n\n
All browsers support basic usage of :focus<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"The :focus pseudo class in CSS is used for styling an element that is currently targeted by the keyboard, or activated by the mouse. Here is an example: Any element (most commonly\u00a0<input>s and\u00a0<textarea>s) are in “focus” when they are selected and ready to enter text (like when a cursor is blinking). Mouse users can click […]<\/p>\n","protected":false},"author":1036,"featured_media":0,"parent":14182,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-single.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":281230,"url":"https:\/\/css-tricks.com\/almanac\/selectors\/f\/focus-visible\/","url_meta":{"origin":14188,"position":0},"title":":focus-visible","date":"January 11, 2019","format":false,"excerpt":"The :focus-visible pseudo-class (also known as the \"Focus-Indicated\" pseudo-class) is a native CSS way to style elements that: Are in focusNeed a visible indicator to show focus (more on this later) :focus-visible is used similarly to :focus: to bring attention to the element that currently has the focus. .element:focus-visible {\u2026","rel":"","context":"In \":focus-visible\"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/01\/focus-visible.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":256635,"url":"https:\/\/css-tricks.com\/almanac\/selectors\/f\/focus-within\/","url_meta":{"origin":14188,"position":1},"title":":focus-within","date":"July 29, 2017","format":false,"excerpt":"The :focus-within pseudo-selector in CSS is a bit unusual, although well-named and rather intuitive. It selects an element if that element contains any children that have :focus. form:focus-within { background: lightyellow; } Which works like this...