:required - CSS pseudo selector

:required - CSS pseudo selector

The :required pseudo class selector in CSS allows you to style any matching element with the necessary attribute by selecting and styling it with the :required pseudo class selector.

Forms may readily specify which fields must have valid data before the form can be submitted, but having the server be the only validator of the user's input allows the user to bypass the wait.

要查看或添加评论,请登录

Milap Patel的更多文章

社区洞察

其他会员也浏览了