{"id":16276,"date":"2021-06-02T07:37:19","date_gmt":"2021-06-02T11:37:19","guid":{"rendered":"https:\/\/carleton.ca\/webservices\/?p=16276"},"modified":"2026-03-18T05:41:53","modified_gmt":"2026-03-18T09:41:53","slug":"top-five-accessibility-issues-3-empty-links","status":"publish","type":"post","link":"https:\/\/carleton.ca\/webservices\/2021\/top-five-accessibility-issues-3-empty-links\/","title":{"rendered":"Top Five Accessibility Issues: 3. Empty Links"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Top Five Accessibility Issues: 3. Empty Links\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n<h2 id=\"empty-links\" class=\"wp-block-heading\">Empty links<\/h2>\n\n\n\n<h3 id=\"what-it-means\" class=\"wp-block-heading\">What it means<\/h3>\n\n\n\n<p>A link contains no text. It&#8217;s emptier than a movie theatre during lockdown. It is invisible to people viewing the page via eyesight (with or without corrective lenses) so it matters little to them &#8211; except that the link might be important and it is not going to receive any visits from this location.<\/p>\n\n\n\n<h3 id=\"why-it-matters\" class=\"wp-block-heading\">Why it matters<\/h3>\n\n\n\n<p>For people using a screen reader, the link will be read to them. It&#8217;s a double whammy &#8211; for people using their own eyesight, they won&#8217;t even know the link existed in the first place; the people using a screen reader will know a link is there but they won&#8217;t know what the results of clicking the link might be. Either the link is important and so should be accessible to everyone, or it should be deleted so as to not confuse.<\/p>\n\n\n\n<h3 id=\"what-to-do\" class=\"wp-block-heading\">What to do<\/h3>\n\n\n\n<p>You first need to identify the empty links on your site. Remove the empty link or provide text within the link that describes the functionality and\/or target of that link.<\/p>\n\n\n\n<p>Identifying empty links is a long and difficult task if tackled manually. You have to look at the page in the back end using the&nbsp;<strong>Text<\/strong> view. With dozens or hundreds of pages, it is almost impossible. If you <a href=\"https:\/\/itsjira.carleton.ca\/servicedesk\/customer\/portal\/5\">request a scan<\/a> for empty links from Web Services, we can help you pinpoint their exact location.<\/p>\n\n\n\n<p>What does an empty link look like? In the text view (that is, the HTML code that creates the page) it would look something like this:<\/p>\n\n\n\n<p>Read about Web Services<strong>&lt;a href=&#8221;https:\/\/carleton.ca\/webservices&#8221; target=&#8221;_blank&#8221;&gt;&lt;\/a&gt;<\/strong><\/p>\n\n\n\n<p>Emptier than&#8230; erm&#8230; my supply of metaphors to convey emptiness.<\/p>\n\n\n\n<p>And what <em>should<\/em> it look like?<\/p>\n\n\n\n<p>&lt;<strong>a href=&#8221;https:\/\/carleton.ca\/webservices&#8221; target=&#8221;_blank&#8221;&gt;<\/strong>Read about Web Services<strong>&lt;\/a&gt;<\/strong><\/p>\n\n\n\n<p>You can see the text should sit inside the two halves of the code. In the example that doesn&#8217;t work, it sits outside the code. So the way to fix an empty link is to place code inside the two parts of the tag &#8211; after the <strong>&lt;a href=&#8221;&#8221;&gt;<\/strong> and the <strong>&lt;\/a&gt;<\/strong><\/p>\n\n\n\n<h3 id=\"bonus-material\" class=\"wp-block-heading\">Bonus material<\/h3>\n\n\n\n<p>While we are on the subject of placing text in hyperlinks, we wanted to also mention the&nbsp;<strong>wording<\/strong> of the text you use for links.<\/p>\n\n\n\n<p>It is important that it is clear from the text what clicking on the link will achieve. Often you see links with text that just reads <strong>Click here<\/strong>. Out of context (e.g., if a link is separated in the code from the preceding text) telling someone accessing the page with assistance from screen reader to <strong>Click here<\/strong> is meaningless. With the text, you need to tell them exactly what the action will do. Some examples of good link text include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Register now<\/li>\n\n\n\n<li>Visit this page to apply<\/li>\n\n\n\n<li>Learn more<\/li>\n\n\n\n<li>Buy a copy of this book<\/li>\n<\/ul>\n\n\n\n<p>For more information on empty links and hyperlinks, visit module 2 of our accessibility training:<\/p>\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button \" href=\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-2-text\/hyperlinks\/\">Accessibility Training &#8211; Module 2: Text <\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Empty links What it means A link contains no text. It&#8217;s emptier than a movie theatre during lockdown. It is invisible to people viewing the page via eyesight (with or without corrective lenses) so it matters little to them &#8211; except that the link might be important and it is not going to receive any [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[197,390,391],"tags":[],"class_list":["post-16276","post","type-post","status-publish","format-standard","hentry","category-accessibility","category-keep","category-rewrite"],"acf":{"cu_post_thumbnail":""},"_links":{"self":[{"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts\/16276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/comments?post=16276"}],"version-history":[{"count":1,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts\/16276\/revisions"}],"predecessor-version":[{"id":21398,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts\/16276\/revisions\/21398"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/media?parent=16276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/categories?post=16276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/tags?post=16276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}