Centering a horizontal rule

All of the <hr> tags below should be displayed as centered.

Using the <center> tag


Using 'align=center' HTML4 attribute


Using CSS 'text-align: center', directly applied


Using CSS 'text-align: center', inherited