

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Style every enabled <input> element with CSS
To style every enabled <input> element, use the CSS :enabled selector.
Example
You can try to run the following code to style enabled <input> element
<!DOCTYPE html> <html> <head> <style> input:enabled { background: blue; } </style> </head> <body> <form action = ""> Subject <input type = "text" name = "subject"><br> Student: <input type = "text" name = "student"><br> Age: <input type = "number" name = "age" disabled><br> </form> </body> </html>
- Related Questions & Answers
- Style every checked <input> element with CSS
- Style every disabled <input> element with CSS
- Style every element that is not the specified element with CSS
- Style every <p> element with a lang attribute value with CSS
- Style input type reset with CSS
- Style input type submit with CSS
- Style input type button with CSS
- Style every <p> element that has no children with CSS
- Style <input> element with no "required" attribute with CSS
- Style <input> element with no "readonly" attribute with CSS
- Style Input Fields of a form with CSS
- Style every <p> element that is the only child of its parent with CSS
- Style every <p> element that is the second child of its parent with CSS
- Working with <style> element for CSS
- How to style an hr element with CSS?
Advertisements