Is there an equivalent unicode character for the HTML horizontal rule <hr> / <hr/>

Issue

Is there an equivalent character for the HTML horizontal rule <hr> or XHTML’s <hr/> tag, that could be used outside of a browser, such as in an executable program, or the JavaScript console. I doubt there is, as we would just use the HTML entity instead.

Solution

&#8213 is the code for a horizontal bar, but not a horizontal line as you want. It will not be possible to create a longer or max-content line with a single Unicode character.

Answered By – Eduard

Answer Checked By – Terry (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.