HTML Entity - Hyphen

Last Updated:

Hyphen

unicodeU+02010
hex code‐
html code‐
html entity‐
css code\02010

Example

The following example will demonstrate how to use 'Hyphen' 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: "\02010"; } </style> </head> <body> <p>Hyphen using Hexa Decimal: &#x2010;</p> <p>Hyphen using HTML Code: &#8208;</p> <p>Hyphen using HTML Entity: &hyphen;</p> <p id="point">Hyphen using CSS Entity: </p> </body> </html>

Browser Support

Devicedesktopmobile
Browsergoogle chromesafarifirefoxinternet Exploreredgeoperagoogle chromesafarifirefoxedgeoperaandroid webviewsamsung internet
YesYesYesYesYesYesYes?YesYesYesYes?

Share this Page

Meet the Author