Using the <hr> Tag in HTML

This is the first paragraph above the horizontal line.


This is the second paragraph below the default horizontal rule.


This is a custom horizontal rule with width="50%", align="left", color="red", and size="3".
These attributes worked in old Internet Explorer versions.


Another example of an old-style horizontal rule with blue color and center alignment.


Horizontal rule with noshade — creates a solid line instead of a 3D effect.

Note: Modern browsers follow CSS styling for horizontal lines.
Old attributes like color, align, and noshade are deprecated and may not work.


How to style <hr> using CSS (Modern Method)


This horizontal rule is styled using CSS inline style (modern way).