Doing SEO for ecommerce? Our upcoming webinar is just for you! Register now.

Dealing with Links issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free
High This Hint is very important, and definitely warrants attention. Issue This Hint represents an error or problem that needs to be fixed.

Has a link with whitespace in href attribute

This means that the URL in question contains at least one outgoing anchor link which has trailing or leading whitespace character in the href attribute.

Why is this important?

Leading or trailing whitespace in an href attribute is typically a CMS or user error. However, since they will usually get trimmed by browsers, they can be hard to spot.

Whitespace in href atrributes may cause a loss or dissipation of link equity, if search engines treat the link targets as distinct URLs.

What does the Hint check?

This Hint will trigger for any internal URL which contains at least one outgoing anchor link with whitespace in the href attribute.

Examples that trigger this Hint:

Any of the example links below would trigger the Hint.

An anchor with href with leading space

<a href="">Test</a>

An anchor with href with trailing space

<a href=" ">Test</a>

An anchor with href with leading space using single quotes

<a href=''>Test</a>

An anchor with href with trailing space using single quotes

<a href=' '>Test</a>

How do you resolve this issue?

Identify the anchors which have whitespace in the href attribute, and correct each one on a case-by-case basis - which may require reviewing the code that generates the links.

Depending on the specific issue, you may be able to fix a number of pages at once, if the problematic link is used in a template for lots of pages on the website. 

How do you get more data from Sitebulb?

From the URL List, click the blue Hint Details button, which will bring up a slide-across window with specific details about the Hint for each URL.

URL List of URLs with whitespace in href

This will show you any outgoing anchor links with whitespace in href attributes, highlighted in red in the HTML. The right-hand scrollbar will show you the area to scroll down to, and then once you have scrolled you will see the highlighted link in red.

Links with whitepace in the href - highlighted in HTML

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.