Main tag and h1 or h1 then main tag? chicken or egg question?

I notice that some developers say “only use h1 and h2 tag once” they also put the main tag after h1 . Others put the main tag before h1 and use the tag more than once. So … what’s correct?