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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo