<input type="text" required placeholder="Required Field"/>
body{
  background: #1f1f1f;
  width: 80%;
  border: 1px dashed #ffffff;
  margin: auto;
  padding: 50px;
  color: #ffffff;
}

input{
  display: inline-block;
  margin: 10px 45%;
  padding: 10px 20px;
  width: 8%;
}

/* required selector */
 input:required  {
    color: red;
 }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.