horuskol,
@horuskol@phpc.social avatar

@matuzo

What's your view on this kind of structure?

https://www.w3.org/WAI/tutorials/page-structure/headings/#main-heading-after-navigation

Or something where the company brand is a <h2> on each page above the <h1> containing the page's main title?

#HTML #A11y #Accessibility

ollicle,
@ollicle@mastodon.social avatar
matuzo,
@matuzo@front-end.social avatar

@horuskol My approach here is very pragmatic. It's fine if there's a landmark starting with an h2 before the main content and the h1. The most important thing is that the rest of the outline is well-structured, descriptive and representative.

horuskol,
@horuskol@phpc.social avatar

@matuzo

Thanks. That's pretty much my thinking, too - but then I've had feedback from other people that <h1> is always first.

matuzo,
@matuzo@front-end.social avatar

@horuskol experts or users? There is a big difference between the theoretical ideal and the practical reality. Best practices do not matter if the solution works for users.

horuskol,
@horuskol@phpc.social avatar

@matuzo

Experts - I mean I've heard and read both sides of this. My own experience and testing has been more of inline with that WAI structure.

I just noticed your posts about structure today (I did try to find some good examples for you, but news sites actually seem to be pretty poorly structured), and thought I'd see what your take was on the issue.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • thenastyranch
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • mdbf
  • tacticalgear
  • osvaldo12
  • Youngstown
  • rosin
  • slotface
  • ethstaker
  • everett
  • kavyap
  • InstantRegret
  • JUstTest
  • Durango
  • normalnudes
  • Leos
  • tester
  • ngwrru68w68
  • cisconetworking
  • cubers
  • GTA5RPClips
  • anitta
  • provamag3
  • modclub
  • megavids
  • lostlight
  • All magazines