'hr' creates a horizontal rule : hr « Tags « HTML / CSS






'hr' creates a horizontal rule

  
    
<html>
<head>
<title>hr element example</title>
</head>
<body>Text
     <hr id="firstRule" noshade color="blue">
     Text
     <hr id="firstRule" color="blue">
     <br>
     <br>
     <br>
     <br>
     <br>
     <br>
     www.java2s.com
     <hr>
</body>
</html>
    
      
        
    
  








Related examples in the same category

1.Horizontal rule
2.Set width and height for
3.Set background color for
4.Horizontal Rule with image
5.Horizontal Rule Example
6.Set line width, size and shade together
7.The hr tag defines a horizontal rule
8.hr margin-left: auto; margin-right: auto; margin-top: 1.25em; margin-bottom: 1.25em;
9.hr width: 10px; height: 10px; background-color: #777;
10.'noshade' causes an 'hr' rule to appear as a solid bar with no shading