html - How to hide text of an anchor tag that uses i element -


i have anchor tag not have text in , uses <i> element along glyphicons. while doing accessibility testing found out anchor tags should have text. 1 strategy put text , visibly hide it using css.

i hide visually using css:

font: 0; line-height: 0; color: transparent; 

however, makes glyphicon go away well. there way can hide anchor tag keep glyphicon as-is?

my achor tag below example:

<a class="something"><i class="glyphicons glyphicons-some-icon"></a>


Popular posts from this blog

java - Cannot send AES encrypted messages of over 47 characters -

objective c - Pick image and crop image became low quality iOS -

vba - Fix database link - Error 3044? -