Once again a discussion I had on problems with headings after an accessibility audit. Can we get it right and can we have a sustainable solution? I believe so!
Please forget about automatic document outline and plan accordingly. Make it work for people and not for search engines. It’s once again a team effort – design, develop and content.
Is it okay to give a heading level 2 the style of level 3 but keep the semantics of level 2. Well yes – but as often with accessibility – it depends. It’s not up to developers to set it in stone and it is for designers and content providers to decide when appropriate. Content is once again crucial.
There are still some myths out there about what we can and can not do and there are also some best practices around use of headings. Please do use them is my advice, but it is not a thing for compliance and SEO itself. It is more about usability.