top of page
  • Writer's pictureBrent Payne

Has a link with an empty href attribute

There exists at least one hyperlink with a missing URL, indicated by an empty href attribute within the anchor tag.

Why is this important?

A hyperlink without a destination suggests either an oversight in development or an anomaly in the coding process leading to the generation of unnecessary anchor elements.

A thorough review is in order to ascertain if the hyperlinks need proper destinations or if the code generating spurious anchor tags calls for rectification.

What does the Optimization check?

The Optimization is activated by any internal page that has a hyperlink pointing nowhere, signified by an empty or whitespace-only href value.

Examples that trigger this Optimization:

An anchor tag with an empty href will activate the Optimization:

<a href="">Example</a>

If there's whitespace between the quotation marks, that also triggers the Optimization:

<a href="  ">Example</a>

How do you resolve this issue?

Locate the anchor tags lacking the href attribute and address each instance based on its context.

Should the issue be repetitive across multiple pages, it might stem from a template, enabling bulk corrections.

How do you get more data from Sitebulb?

In the URL List, selecting the blue Optimization Details button unveils a panel with granular details for each URL regarding the Optimization.

A detailed view shows hyperlinks with missing href attributes, spotlighted in red within the source code. The scrollbar hints at where to navigate, and upon scrolling, the offending hyperlink can be seen in red.

1 view0 comments

Recent Posts

See All

The skip-link target should exist and be focusable

At Loud Interactive, we're committed to ensuring that digital accessibility is at the forefront of website design and development. During our SEO audits, we look for and attempt to identify an area of

Timed meta refresh must not exist

At Loud Interactive, we regularly perform a SEO audits. We often stumble upon an important issue that could significantly impact user experience and accessibility on websites. We're talking about the

bottom of page