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

Business SEO Basics Better SEO Through Tools Ensuring SEO Success in the Future

Beto Najera
Beto Najera
7,072 Points

Does it work in SEO?

Hi Dan, friends. If I don't need a big title for my design, I could consider it irrelevant because mainly I have images at least at home. Can I use an H1 with a good content, but with "display: none;". Does it work in SEO. Thanks in advance for your answer.

2 Answers

This is a much debated topic, but it's probably not a good idea to hide text using CSS.

According to Matt Cutts - the head of Google's web spam team, the best way to do it is with an Alt tag.

This seems to be the accepted way for accessibility and SEO purposes:

<h1>
  <a href="http://yourwebsite.com">
    <img src="logo.jpg" alt="Logo Text" />
  </a>
</h1>

Hope this helps :)

Beto Najera
Beto Najera
7,072 Points

Oh I see, thank you very much.