HTML Entity - Horizontal Bar

Last Updated:

Horizontal Bar

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


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

Browsergoogle chromesafarifirefoxinternet Exploreredgeoperagoogle chromesafarifirefoxedgeoperaandroid webviewsamsung internet

Share this Page

Meet the Author