When using the input type text, adding the required attribute prevents the form from submitting and prompts the browser to focus on the required field with an alert instructing to fill it out. On the other hand, when applying the required attribute to the input type radio, the form still won't submit but no alert or focus is provided for the unchecked radio button. If this behavior is not a default feature of HTML5, is there a way to create a similar functionality to maintain style consistency across different input types?