The :focus-within pseudo selector in CSS, It selects an element if that element contains any children that have :focus. For e.g. In a form element if there is an element which is capable to receive :focus, the :focus-within will be active on form element.