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>