Reputation: 3870
When I'm writing dimensions in HTML, what is the correct, semantic way to write them so that screen readers and other assistive technologies will interpret them correctly?
For example, I'm talking about physical dimensions of a building on a page, I want to write something along the lines of "the building is 100x200 feet in size". For this, I can use a regular lower-case x
, ×
or ✕
. Beyond these, there are several other similar characters to choose from, but I don't know which is best.
Any suggestions or input would be appreciated.
Upvotes: 3
Views: 147
Reputation: 18807
The problem is also a problem of text-alternative. How do you pronounce it?
If so, then you should chose between using the full form, or using a text-replacement:
<span aria-label="by">x</span>
200 feet in sizeNo matter which char you use, the most important thing is to have something understandable by screen readers (and sighted users of course)
Upvotes: 2
Reputation: 1808
After a quick Google search of "area" the top result I got was maths is fun. They use × (×) Seems perfectly reasonable to me.
Wikipedia uses it too, I think × is a safe bet.
Upvotes: 1