WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Heading without contents

for

From: Sandy Feldman
Date: Jan 4, 2023 7:50AM


I think using <hgroup> might help here, but I'm not sure. Is it helpful
to screen reader users?

https://www.w3.org/TR/2011/WD-html5-author-20110809/the-hgroup-element.html

It looks it's supported by modern browsers

https://caniuse.com/?search=%3Chgroup%3E


Sandy

https://sandyfeldman.com
https://www.a11yready.com


On 2023-01-04 7:27 a.m., Mark Magennis wrote:
> I agree with you. This could be confusing. It could confuse sighted users who may wonder why the content is missing. It could confuse screen reader users even more because they may wonder whether the content is missing or whether it is there but just not being read by the screen reader. I would suggest a text para saying there is no information available but as specific as possible, e.g. "there are no employment records for this employee".
>
> Mark
>
> -----Original Message-----
> From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of allyssa jessicon
> Sent: Wednesday 4 January 2023 12:16
> To: <EMAIL REMOVED>
> Subject: [EXTERNAL] [WebAIM] Heading without contents
>
> Hello everyone,
>
> A very good morning and happy new year 2023.
>
> Let me go straight into the question. Suppose if there is a heading but there is no content below it and the heading is also an h1, the top-level heading in the page. I believe this is not a good practice to have a heading without any content below it. Do I sound reasonable?
> and avoiding heading without content below it is a best practice?
>
> Appreciate each opinion and corrections.
>
>
> Regards,
> Alysa.
> > > > > > >