I have write <img> tag like this :
<img id="image1" alt="image1" />
And css code is :
#image1 {
background-image: url("../images/home-page/image1.jpg");
background-size: 100% 100%;
position: absolute;
}
On my web page image and alt attribute's text both gets displayed. If image is present then I don't want to display alt text. Don't know what is the problem. Can anyone knows How to solve it? And what is the problem?