0

I used - to reperesnt hypen it is giving me dash but I need hypen can anybody let me know how to do this.

Vinayjava
  • 171
  • 2
  • 9
  • The title says “java code”, but the question is tagged with “html” only. Which one is it about? – Jukka K. Korpela Mar 26 '13 at 08:27
  • I think the accepted answer in this question might be helpful http://stackoverflow.com/questions/7691569/no-line-break-after-a-hyphen – rene Mar 26 '13 at 08:27
  • What do you mean by “dash” and “hypen”? The reference `-` denotes HYPHEN-MINUS, an Ascii character commonly called “hyphen”, whereas “dash” normally means EN DASH (–) or EM DASH (—). So which character do you want? (Describing the context and purpose might help to guess what is really needed.) – Jukka K. Korpela Mar 26 '13 at 08:36

1 Answers1

0

The hyphen character is the Unicode character U+2010, so you use ‐ to put it in the HTML code.

Comparison between hyphen, hyphen-minus (ASCII dash) and minus:

Go‐getter (‐)
Go-getter (- / -)
Go−getter (#8722;)

Guffa
  • 687,336
  • 108
  • 737
  • 1,005