Login
You're viewing the front-end.social public feed.

Replies

  • Mayankmayank
    Jun 2, 2026, 6:14 PM

    i do think it's best used in moderation.

    instead of making everything h1, i would start at h2 in most places (unless of course it's literally a document), with `headingoffset` sprinkled more intentionally.

    a page with a hundred h1s is nonsensical, but the same amount of h2s can still make sense.

    💬 2🔄 0⭐ 4
  • Mayankmayank
    Jun 2, 2026, 6:34 PM

    this could become a common pattern to counter overly zealous use of `headingoffset`:

    ```
    <h2 headingreset>Do not fuck with me</h2>
    ```

    💬 0🔄 0⭐ 4
  • Jun 3, 2026, 12:56 AM

    @mayank
    I agree. There are a lot of use cases where the contained content also exists as its own page where an h1 world be appropriate but I think there are even more where that's not the case and h2 is a better default.

    And that still doesn't mean "h2 all the things!" If a component has more than one heading level, it should still use h3s below its h2 instead of more h2s wrapped in another heading offset.

    💬 1🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0