Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to selects input elements with the "required" attribute specified using css ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/04/10
medhatmahmoud mahmoud
by medhatmahmoud mahmoud , Web Designer , Connect Computer Service Co

<head>

<style>

input:required {

    background-color: yellow;

}

</style>

</head>

<body>

 

<p>An optional input element:<br><input></p>

 

<p>A required input element:<br><input required></p>

 

</body>

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.