WebAIM - Web Accessibility In Mind

E-mail List Archives

Proper Unicode or html entity for negative sign

for

From: Elizabeth Thomas
Date: Mar 14, 2023 9:21AM


Does anyone know the correct Unicode or HTML entity for the negative sign (e.g., to represent the number negative 19)? The context is a negative number used in a sentence; it’s not in a mathematical expression or equation.
I know I could use the hyphen, but that will be ignored by many technologies because it’s wrong and that’s not what hyphens are for. Consequently, I don’t think it will be clear to some people that the number is negative.
I could use Unicode entity 2212, but that looks super weird and I’m not sure that’s correct because that’s for the minus operator.
Is there another entity I can use that will be read correctly by AT like a screen reader? Or is the Unicode entity 2212 the correct character for this use case? Or Is hyphen minus (002D) the correct entity? (I’m definitely not using the en dash, which is for ranges as it means “to” or “through”).
Thanks in advance. Math accessibility is hard (but fun). ;)
-Elizabeth Thomas
Digital Accessibility Specialist, State of NJ