:out-of-range सेलेक्टर का व्यावहारिक उदाहरण
यह आलेख दिखाता है कि कैसे min/max रेंज से बाहर की वैल्यू वाले नंबर इनपुट को स्टाइल किया जाए।
उदाहरण
<!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>
यह ID 1005062666 के समान आलेख है।