Mobile app version of vmapp.org
Login or Join
Welton855

: Will using a pseudo element to place background image on top of an image tag for SEO value have negative consequences Will using a pseudo element like before to place background image on top

@Welton855

Posted in: #Css #Html #Images #Seo

Will using a pseudo element like before to place background image on top of an img element for SEO value have negative consequences?

The reason being we want the flexibility of an element with a background image that can maintain its proportion well still getting the SEO value from an img element with an alt attribute.

This mainly become an issue in responsive and the magazine style layout that we are trying to maintain. It makes use of overlapping images.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

I don't see how it would, as long the alt tags are relevant to the image in the HTML, and you are not deceiving your site visitors it would not raise any flags. The background image is coded in CSS behind the main image so it has no value in as far as ranking.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme