{"id":16118,"date":"2021-05-11T15:59:28","date_gmt":"2021-05-11T19:59:28","guid":{"rendered":"https:\/\/carleton.ca\/webservices\/?p=16118"},"modified":"2026-03-18T05:41:53","modified_gmt":"2026-03-18T09:41:53","slug":"top-five-accessibility-issues-2-empty-heading","status":"publish","type":"post","link":"https:\/\/carleton.ca\/webservices\/2021\/top-five-accessibility-issues-2-empty-heading\/","title":{"rendered":"Top Five Accessibility Issues: 2. Empty Heading"},"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: 2. Empty Heading\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n<h2 id=\"empty-heading\" class=\"wp-block-heading\">Empty heading<\/h2>\n\n\n\n<h3 id=\"what-it-means\" class=\"wp-block-heading\">What It Means<\/h3>\n\n\n\n<p>A heading that contains no content. How do these empty headings occur? It is the easiest thing to accidentally create one: you insert a heading in one of your pages. However, then you decide to delete it, but you do so by only deleting the text. The HTML tag which creates a heading remains, hidden in the code. Sneaky!<\/p>\n\n\n\n<h3 id=\"why-it-matters\" class=\"wp-block-heading\">Why It Matters<\/h3>\n\n\n\n<p>Some users, especially keyboard and screen reader users, often navigate by heading elements. An empty heading will present no information and may introduce confusion.<\/p>\n\n\n\n<h3 id=\"what-to-do\" class=\"wp-block-heading\">What To Do<\/h3>\n\n\n\n<p>Ensure that all headings contain informative content.<\/p>\n\n\n\n<p>Fixing this issue is pretty straightforward compared to some other accessibility problems on a website. The main complexity with empty headers is finding them in the first place. Why? Because they&#8217;re <strong>empty<\/strong>! Yep, empty as my vacation plans during COVID-19. So how do you spot them?<\/p>\n\n\n\n<p>If we have run an accessibility report for your site, we can provide the addresses of pages where the empty heading tags are. Then you can:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log into your site, edit the page where we reported the error and<\/li>\n\n\n\n<li>Click on the <strong>Text<\/strong> tab to view the HTML that creates your page.<\/li>\n\n\n\n<li>Search your page (using CTRL+F (Windows) or CMD+F (Mac)) for empty heading tags. These are most likely to be <strong>&lt;h2>&lt;\/h2><\/strong> or <strong>&lt;h3>&lt;\/h3><\/strong> or <strong>&lt;h4>&lt;\/h4><\/strong><\/li>\n\n\n\n<li>When you find them, delete them! You might need to remove a blank line if the empty header was sitting between two paragraphs.<\/li>\n<\/ol>\n\n\n\n<p>Alternatively, you can scan your pages and try and find them by eye. It can be difficult to spot them; however, a suspiciously large gap between two paragraphs is a clue. Here is an example of a heading that&#8217;s emptier than a politician&#8217;s promise [located between the first and second paragraphs below]:<\/p>\n\n\n<div class=\"not-prose cu-quote cu-component-spacing\">\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h3 id=\"introduction\" class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p>Cats in ancient Egypt were represented in social and religious practices of ancient Egypt for more than 3,000 years. Several ancient Egyptian deities were depicted and sculptured with cat-like heads such as Mafdet, Bastet and Sekhmet, representing justice, fertility and power. The deity Mut was also depicted as a cat and in the company of a cat.<\/p>\n\n\n\n<h3 id=\"\" class=\"wp-block-heading\"><\/h3>\n\n\n\n<p>Cats were praised for killing&nbsp;venomous snakes&nbsp;and protecting the&nbsp;Pharaoh&nbsp;since at least the&nbsp;First Dynasty of Egypt. Skeletal remains of cats were found among funerary goods dating to the&nbsp;12th Dynasty. The protective function of cats is indicated in the&nbsp;Book of the Dead, where a cat represents&nbsp;Ra&nbsp;and the benefits of the sun for life on Earth.<\/p>\n<\/blockquote>\n<\/div>\n\n\n<p>In this situation, you could just edit the page and delete two of the three empty lines between the two paragraphs &#8211; this will remove the empty &lt;h3&gt;&lt;\/h3&gt; tag which is hiding there. It is definitely harder to find them this way.<\/p>\n\n\n\n<p>Look out for the next post about the third most frequent accessibility issue: Empty Links!<\/p>\n\n\n\n<p>For more information about empty headings, 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\/paragraphs-and-headings\/\">Accessibility Training &#8211; Module 2: Text<\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Empty heading What It Means A heading that contains no content. How do these empty headings occur? It is the easiest thing to accidentally create one: you insert a heading in one of your pages. However, then you decide to delete it, but you do so by only deleting the text. The HTML tag which [&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-16118","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\/16118","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=16118"}],"version-history":[{"count":1,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts\/16118\/revisions"}],"predecessor-version":[{"id":21396,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/posts\/16118\/revisions\/21396"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/media?parent=16118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/categories?post=16118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carleton.ca\/webservices\/wp-json\/wp\/v2\/tags?post=16118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}