Set the background color for horizontal rule in html - HTML CSS HTML

HTML CSS examples for HTML:Line Break

Description

Set the background color for horizontal rule in html

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--   w  w  w.ja v a2  s  .c om-->
 <body> 
  <hr style="margin:0; padding:0; background-color: #F7D25F; color: #F7D25F; height:1px; border:none;">  
 </body>
</html>

Related Tutorials