Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Compass Basics Compass Helper Functions Text Replacement and Inline Images

David Service
David Service
12,928 Points

Replacing <img> tag with CSS image.

Would using this CSS technique for the inclusion of our logo really make for better accessibility and SEO outcomes?

Considering that any embedded <img> tag would have β€œalt” and β€œtitle” attributes (which we lose the use of with this technique), are the accessibility and SEO outcomes really that much better?

Not a critical question, but it has me a bit curious if anyone has the time to shed some light on it.

Thanks for the help,

David

Zachary Green
Zachary Green
16,359 Points

I would use css for backgrounds and other aesthetic img's. for img's that are content i would use the img tag for the exact reason of SEO.

David Service
David Service
12,928 Points

Hi Zachary,

That's just the answer I was looking for. Thanks for straightening that out for me.

David