Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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