hello to all the members of daniweb
My Question is if we insert the image in css, so how can I add the alt attribute or other property which will work like the alt text. Because alt text attributs are important for the seo. But Alt attribute is the tag of the html not css.
johmny
-3
Junior Poster in Training
Recommended Answers
Jump to PostBackground images in css aren't really meant to be used as images (tag-wise) in HTML, but you can use css (and js possibly) to fill a container with a background image. You can add a title attribute to the container tag.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.