Will a screen reader say a colon in HTML tag tags?

I am wondering if one of them is a better rating than the other:

<label>Foo</label>:
<label>Bar:</label>

Is one of them better accessible? Does the screen reader read a colon in both cases?

Hi,

+4
source share
3 answers

Can you use :afterto add a colon using CSS, and then leave only the tag tag that you want to insert in the tag? Could this be better for semantics?

<label>Your label here</label>

.label:after {
    content:":";
}

http://jsfiddle.net/j7cqw6wg/

+3
source

, , "for=" <label>, <input> <label>.

<label for='foo'>my label</label>
<input id='foo'/>

<label>my label <input/></label>

, .

, , , santialurralde, . , , . ( ), . , .

JAWS, . "" "" "" .. .

0

Source: https://habr.com/ru/post/1589402/


All Articles