Skip to content

fix: convert section H1 tags to H2 for proper heading hierarchy#126

Open
gyanranjanpanda wants to merge 1 commit intoaboutcode-org:mainfrom
gyanranjanpanda:fix/heading-hierarchy-227
Open

fix: convert section H1 tags to H2 for proper heading hierarchy#126
gyanranjanpanda wants to merge 1 commit intoaboutcode-org:mainfrom
gyanranjanpanda:fix/heading-hierarchy-227

Conversation

@gyanranjanpanda
Copy link

Fixes aboutcode-org/aboutcode#227

Changes

  • Converted "AboutCode Projects Overview" from H1 to H2
  • Converted "Supporters" from H1 to H2
  • Ensures single H1 per page for accessibility compliance

Impact

  • ✅ WCAG 2.1 compliant (Success Criterion 1.3.1)
  • ✅ Improved SEO (single primary heading)
  • ✅ Better screen reader navigation
  • ✅ Proper semantic HTML structure

Verification

Testing Results

JavaScript verification confirmed exactly 1 H1 tag on the homepage:

  • H1: "Welcome to AboutCode.org" (primary heading)
  • H2: "AboutCode Projects Overview" (converted from H1)
  • H2: "Supporters" (converted from H1)

Fixes #227

- Changed 'AboutCode Projects Overview' from H1 to H2
- Changed 'Supporters' from H1 to H2
- Ensures single H1 per page for WCAG 2.1 compliance
- Improves SEO by eliminating multiple H1 tags

Signed-off-by: Gyan Ranjan Panda <gyanranjanpanda@gmail.com>
@gyanranjanpanda gyanranjanpanda force-pushed the fix/heading-hierarchy-227 branch from 5cf666d to b284e43 Compare February 7, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility/SEO] Multiple H1 tags and improper heading hierarchy on homepage

1 participant