re: Handling route changes in React, accessibly VIEW POST

re: Could focusing the <title /> element be an alternative if you don't have any h1 elements on the page?

Every page in your app should have an H1 - it's a really important landmark for users, especially those using screen readers.

If your design means that you really need the H1 to not look like an H1, then of course it could be styled with CSS to make it appear similar to other page text. Another option would be to display it off screen altogether using CSS, but I'd question carefully whether you need to do that. Having a clear H1 element at the top of your page helps all users, not just those using assistive technology 🙂

code of conduct - report abuse