14

What is the HTML entity name for Backward slash (\)?

For example:

< represents Lesser than

> represents Greater than

Similarly for other characters also. Is there any documentations regarding this?

2
  • 4
    '/' is not a backslash. It is a (forward) slash. Backslash ('\') in HTML is represented by \ & (forward) slash ('/') by /
    – Vivek
    Sep 1, 2015 at 11:05
  • Sorry Updated. That was a typo error.
    – John R
    Sep 1, 2015 at 11:22

5 Answers 5

17

\ represents reverse solidus (backward solidus)

(from this resource: http://dev.w3.org/html5/html-author/charref)

1
  • interesting: Although \ and ∖ look the same at dev.w3.org/html5/html-author/charref: If you double-click both characters in the table, copy and paste them to an editor, only \ will have the ASCII code 0x5C (note: UltraEdit pastes both as 5C). ∖ is in fact ∖ (U+2216), which is encoded (if I enunciate this correct) on my Windows with hex E2 88 96.
    – MattTT
    Oct 23 at 12:49
10

Did you try :

Slash     : /  : / : /
Backslash : \  : \ : \
0
3

Some browsers display the Japanese currency symbol Yen ¥ instead of backslash \, when Japanese or Korean font have been installed. See also Michael Kaplan's blog http://archives.miloush.net/michkap/archive/2005/09/17/469941.html

I was looking for HTML entity to replace the backslash characters in file pathes displayed on my webpages. Unfortunately, my Chrome displays both entities \ \ and \ \ as Yen characters. But I found a very similar glyph on http://jrgraphix.net/r/Unicode/2980-29FF of Unicode character U+29F5 which renders as desired: ⧵ ⧵

0
1

The backlash (\) can be used in HTML using two methods. These are;

  1. \ and
  2. \ Note that the semi-colon (;) has to be included else it will not work.
-1

the entity name for backward slash(/) is :- /

1
  • 2
    That is the forward slash. See @Val Bonn's answer.
    – mskfisher
    Jul 18, 2018 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.