how to make a dotted hr in css

CSS
/* hr {
  border:none;
  border-top:1px dotted #f00; 
  color:#fff;
  background-color:#fff;
  height:1px;
  width:50%;
} */
Source

Also in CSS: