Has a link with an empty href attribute

This means that the URL in question contains at least one outgoing anchor link which has an empty href attribute.

Why is this important?

This situation would suggest that a link was intended to be added, but was not. It also may represent a bug in the underlying code, which is adding <a> tags where it should not.

Either way, the situation should be evaluated to determined whether href links need to be added in properly, or if the code needs to be fixed to avoid unnecessary <a> tags being added.

What does the Hint check?

This Hint will trigger for any internal URL which contains at least one outgoing anchor linkbwhere the href is empty, or contains only whitespace.

Examples that trigger this Hint:

Any of the example links below would trigger the Hint.

An anchor with an empty href

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

An anchor with whitespace as the href

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

How do you resolve this issue?

Identify the anchors which are missing the href attribute, and correct each one on a case-by-case basis.

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.

link with no href attribute

This will show you any outgoing anchor links with empty 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.

Link with empty href highlighted in HTML

Ready to try Sitebulb?
Start your free 14 day trial now

Start Free Trial