Style horizontal line <hr> with css background style - HTML CSS HTML

HTML CSS examples for HTML:Line Break

Description

Style horizontal line <hr> with css background style

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w ww .  j  av a 2  s  . c om-->
 <body> 
  <hr style="background: red; border: none; height: 5px;">  
 </body>
</html>

Related Tutorials