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

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -