Here we looked at the ASCII table to find the binary number for hyphen. Then we converted that binary
number of 0s and 1s into a decimal number. Finally, we converted that decimal number into HTML code that you can use
on your webpage to display the hyphen.
From the ASCII table, we found that the binary number for hyphen is as follows: 0101101
When we converted the binary number 0101101 to a decimal number that you may be more
familiar with, we got: 45
Now that we have the ASCII decimal number for hyphen, it is easy to convert
it to ASCII HTML. We have displayed the code in green below.
-
You can copy/paste the code in green above into HTML files and it will display as hyphen.
We have displayed hyphen with the above ASCII HTML code font size 7, 6, 5, 4, and 3 below.
- -
- - -
|
|