Im trying to hide text (that I use for screenreaders) in an a
tag and instead use a background icon.
HTML
<a href="#"><span>Search</span></a>
CSS
span {
display: none;
}
a {
display: inline-block;
width: 17px;
height: 16px;
background: url(https://i.stack.imgur.com/5c3zk.png);
}
Is there a way to do the same without span
?