- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Role of CSS: out-of-range Selector
Use the CSS :out-of-range selector to style <input> elements with a value outside a specified range.
Example
You can try to run the following code to implement the :out-of-range selector
<!DOCTYPE html> <html> <head> <style> input:out-of-range { border: 3px dashed orange; background: yellow; } </style> </head> <body> <input type = "number" min = "5" max = "10" value = "15"> <p>The style only works for the value entered out of range</p> </body> </html>
Advertisements