Hr Tag Attributes
- align : left center right
- noshade : dashed dotted
- size
- width
1 2 3 |
<hr align="left | center | right"> |
1 2 3 |
<hr style=”width:70%;border:3px dotted green;”> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
<html> <head> <style> .first { border: none; border-top-color: green; border-top-style: solid; border-top-width: 3px; } .second { border: none; border-top-color: red; border-top-style: dotted; border-top-width: 3px; } .third { border: none; border-top-color: blue; border-top-style: dashed; border-top-width: 3px } .four { border: none; border-top-color: hotpink; border-top-style: double; border-top-width: 3px } </style> </head> <body> <h3>Default Horizontal Line</h3> <hr> <h3>Horizontal Line with Different Styles:</h3> <hr class="first"> <hr class="second"> <hr class="third"> <hr class="four"> </body> </html> |