Smartlab Software logo

Personalize the <hr> using CSS

The hr tag can be personalized easily with CSS.

hr tag and CSS

hr {
color: #00FF00;
background-color: #00FF00;
border: 0px;
height: 2px;
width: 50%;
text-align: center;
}

Here's what it looks like:



This validates as HTML 1.0 Strict.