I have built a website and the masthead uses an SVG that contains the site title, logo and support graphics.
The masthead still contains the logo as an inline image, and <h1>
, <h2>
tags. However the logo and header tags are all hidden using CSS in favour of the masthead graphic.
The HTML shown below may not have been uploaded to the website at the time of writing this question, just in case you're wondering why the source code of the URL is different. But that's what it will look like.
Does this affect SEO? As the HTML does match the masthead content and doesn't contain spam or fake keywords. It also matches the page title in the browser window.
<div class="masthead-inner container">
<a class="logo hidden" href="<?php echo $appurl; ?>" title="All Together"><img src="<?php echo $appurl; ?>img/logo2.png" alt="All Together logo"></a>
<h1 class="hidden">All Together - Work Placement Software</h1>
<h2 class="hidden">Online software for efficient placement management</h2>
</div>
class="hidden"
do? If it's justdisplay: none;
I suspect the search bots will just completely ignore the content. Something like Bootstrap 3's.sr-only
will make it invisible but available to text-only UAs (like screen readers and search bots).display: none;
.sr-only
approach will make it useful to both search engine bots and screen readers.<img itemprop="logo"
on the logo using schema ;) Would look something like:<div itemscope itemtype="http://schema.org/Organization"> <a class="logo hidden" itemprop="url" href="<?php echo $appurl; ?>" title="All Together"><img itemprop="logo" src="<?php echo $appurl; ?>img/logo2.png" alt="All Together logo"/></a> </div>