HTML Entity - Horizontal Bar

Last Updated:

Horizontal Bar

unicodeU+02015
hex code―
html code―
html entity―
css code\02015

Example

The following example will demonstrate how to use 'Horizontal Bar' HTML entity using HTML and CSS. For a complete reference, go to our HTML Entities.

HTML Online Compiler
<!DOCTYPE html> <html> <head> <style> #point:after{ content: "\02015"; } </style> </head> <body> <p>Horizontal Bar using Hexa Decimal: &#x2015;</p> <p>Horizontal Bar using HTML Code: &#8213;</p> <p>Horizontal Bar using HTML Entity: &horbar;</p> <p id="point">Horizontal Bar using CSS Entity: </p> </body> </html>

Browser Support

Devicedesktopmobile
Browsergoogle chromesafarifirefoxinternet Exploreredgeoperagoogle chromesafarifirefoxedgeoperaandroid webviewsamsung internet
YesYesYesYesYesYesYes?YesYesYesYes?

Share this Page

Meet the Author