<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
input:out-of-range {
border: 3px solid #8ebf42;
}
</style>
</head>
<body>
<h2>Пример селектора :out-of-range</h2>
<form>
<input type="number" min="1" max="12" value="15">
</form>
</body>
</html>