I apologize if UX is not the right place for this, I am a UX designer, but it may be a little bit in front end development.
I am working on the production of certain HTML / CSS components for a client and I try to make them as accessible as possible in the code I provide them. As I have done some accessibility audits recently, it is a big thing that I am trying to get out of my work.
I'm trying to find the best way to present the following, either by just using good HTML semantics, or if that requires aria tags, for example labelledby?
I am looking for the best way to display a statistic and then its value. Please do not criticize the actual design here, I am not responsible for the design, only the production of the components.
Currently my code is:
Number of computers affected230,000
However, I'm not sure if an h3 title item is correct here (at least it's the next higher level title on the page). Should I use a label or a div with an aria label? Or is it OK to use headers here, even if everything about them is worth.
Thanks a lot for your help.