hr tag in html code example
Example 1: html horizontal line style
<hr style="width:50%", size="3", color=black>
<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
Example 2: hr tag
<hr style="height:2px;border-width:0;color:gray;background-color:gray">
Example 3: how to style an hr tag
/* Red border */
hr.new1 {
border-top: 1px solid red;
}
/* Dashed red border */
hr.new2 {
border-top: 1px dashed red;
}
/* Dotted red border */
hr.new3 {
border-top: 1px dotted red;
}
/* Thick red border */
hr.new4 {
border: 1px solid red;
}
/* Large rounded green border */
hr.new5 {
border: 10px solid green;
border-radius: 5px;
}
Example 4: horizontal line html
<hr>
Example 5: which is right or in html
<hr>
Example 6: hr tag html
<hr>