Digital Quality Management
cancel
Showing results for 
Search instead for 
Did you mean: 

DQM Checkpoints and Standards

Checkpoints - Do not have links without content

Understanding "Do not have links without content"

Link tags such as <a href> should not be empty, there should be content specified within such as a hashtag (#) or javascript or an URL path. Although the empty links will not be visible on the page, they will be apparent to some users such as those using a screen reader and cause confusion when it is being read out.

I cannot see the issue in browser view

This checkpoint looks at links that are empty. When a link is empty it may not be visible when the webpage is opened. This is an issue because even if the link is not visible in the browser it will still be visible in the source code of the page which can be seen by screen readers or search engine crawlers. If you cannot find the issue in browser view switch to source code view to find where the issue is in the source code.

How do I fix links with no content

We would recommend reviewing the link if it is necessary. There are cases where the link was forgotten in the source code and is no longer needed, in these cases the link needs to be removed. For cases where the link is used but CSS is generating content, we would recommend changing this so that there is text in between the link instead.

Affects: Accessibility, SEO (WCAG 2.0 Level A, 2.4.4)
Technical Details: This checkpoint examines the entire HTML source code of a page and reports an error if any link tags (such as <a href>) are empty, if a hashtag (#) or javascript is found, this will not be flagged.
References: https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-refs.html
Labels (1)
Version history
Revision #:
4 of 4
Last update:
‎06-19-2019 10:12 PM
Updated by:
 
Looking for more?
Ask in Discussions
Developers

Peer-to-peer support  and answers on developing CMS templates, modifying privacy scripts or building integrations.

Digital Experience Management

Find answers and ask questions on content management, personalization and targeting.

Digital Quality Management

Find answers and ask questions on WCAG and SEO quality management.

Digital Governance

Find answers and ask questions on consent and monitoring solutions.